Thursday, July 14, 2011

Extracting Patterns based on Colors

Recently I have been looking into thresholding based on colors.
Running histogram equalization on each channel of an image produces the following images (upper left, bottom left, bottom middle). Combining these images back into one color image produces the "equalized" image (top-middle). As one will notice, the colors that represent the patterns stand out brightly, and from here we can simply threshold the image into a binary image (upper-right).





Taking this idea further, we can choose a region of interest near the centroid of the image, to look for patterns on the back of the insect. This is noted by the red square on bottom-most image. The patterns in the binary image are taken from this square and edge-detection is performed, resulting in the small square (upper-right).




No noticeable patterns near center


Back pattern slightly detected.

Back pattern noticeable and extracted.

No comments:

Post a Comment