Adaptive Image Segmentation Based on Histogram Transition Zone Analysis