I want to determine the white rectangles in the images. I will use the rectangles to create panels.
The purpose of that to create a similar view inside the TableLayout control as you see in picture below. I need algorithm that can detect white areas in pictures. I know I should use the color values but I couldn't figure it out quite right.
Note: By white area I mean white and tones close to it.
If you are sure the white rectangles are exactly rectangular, and the image is exactly black and white this should not be that difficult of a problem. You could for example use an algorithm like this:
If your input data is less clean you might be forced to use more complicated image processing techniques, and this can significantly increase the complexity.