Method to analyze pixels
Posted: Tue Jan 04, 2011 6:09 pm
Hey there
Is there a way to count the number of black pixels in an area? For example: In a 400 X 300 B/W image, I would like to count the number of black pixels in an area that's 15 by 15 pixels and in the bottom right corner. Is this possible? I have been looking in the Pixel Access methods but found nothing. I did try the GetPixelIntegerArray() or something like that but I can't figure out the values it puts in the array.
Is there a way to count the number of black pixels in an area? For example: In a 400 X 300 B/W image, I would like to count the number of black pixels in an area that's 15 by 15 pixels and in the bottom right corner. Is this possible? I have been looking in the Pixel Access methods but found nothing. I did try the GetPixelIntegerArray() or something like that but I can't figure out the values it puts in the array.