How to Detect a Inhomogeneity Region in Image
There are many properties of inhomogeneity:


Local Variance / STD.
Local Histogram.
The Gradient Function
Histogram of the Gradient.
Mean versus the Median / Mode.