Texture analysis for segmentation using Opencv.