Histogram analysis for like images