Text this: Segment search for local extremums of images based on the analysis of brightness of adjacent homogeneous areas