draw 2 rectangle on the image and compare the histogram of each region
SWT algorithm used in my ba thesis
run region contrast mode
homogeneous filter and image ROI hist and kmeans tools