Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. single therad:
  2.  
  3. For row := 0 to image_row do
  4. For col := 0 to image_column do
  5. result_pixel := ∑ selected_pixel / pixel_count
  6. end
  7. end
  8.  
  9.  
  10. multi thread:
  11.  
  12. row_start := row_count / thread_count * nth -1
  13. row_stop := row_count / thread_count * nth
  14.  
  15. For row := row_start to row_stop do
  16. For col := 0 to image_column do
  17. result_pixel := ∑ selected_pixel / pixel_count
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement