This is an adaptation of the texture segmentation, using texture filters method and OpenCV. The method is presented in Matlab code, in this excellent tutorial http://uk.mathworks.com/help/images/examples/texture-segmentation-using-texture-filters.html
Image segmentation is a the process of partitioning an image into multiple segments. Here is the wikipedia article on Image segmentation.
The featured method partitions an image based on texture. It is an adaptation of this Mathworks example into OpenCV.
Some of the functions implemented as steps of the featured texture segmentation method are:
- entropyfilt: Returns a matrix, of the same size as the input image, where each pixel contains the entropy value of its 9x9 neighborhood.
- calculateEntropy: Calculates the entropy of an image, as described here