histogram analysis for like images