Monday, March 22, 2010

Normalizing of the histogram view

Hi!



Does anybody know, how exactly Photoshop normalizes its histogram-views? The scalefactor does not (just) depend on the maximum occurence. In a high key image for example, the high occurence of lights gets ''clipped'' (in the view) in order to still show us the details of lower occurences. Using the median for the calculation and making the occurence of the median 50% seems to help, but this is not exactly what Photoshop does.



Any help would be highly appreciated...



Michael
Normalizing of the histogram view
You could scale the histogram so that the histogram area covers some meaningful percentage of the display area. With about 33% you get something reasonably similar to PS.



histo_area = (sumY / (n * maxY))



histo_scale = 33% / histo_area

No comments:

Post a Comment