Dividing A Image Into Multiple Images Of Equal Pixel Data
I have a greyscale image im If total is the sum of all pixels' values, how do I split im into 5 images with the following properties: sum of all pixels' values is 1/5 of total mis
Solution 1:
Your original problem is a hard one. But, looking at the comments you made, I think it is a simple problem. You can scan the image from top to bottom, and sum the pixels. When the sum reaches the sum_all_pixels/5, then you have found the first area. Reset the sum to zero, and continue scanning for the second area. I hope you understand what I mean.
Post a Comment for "Dividing A Image Into Multiple Images Of Equal Pixel Data"