Page 1 of 1

Photoshop histogram mean value != IM mean value

Posted: 2010-08-12T07:29:29-07:00
by forumware
Hi, on another thread, FMW has helped with a script that converts an image to grayscale and appends the mean value of gray to the filename, but when i compare this mean value with one in photoshop's histogram tab, they do not match.

I've been using this page as reference: http://kb2.adobe.com/cps/315/315207.html that mentions how to convert levels to % and backwards. I'm plugging the number from photoshop but nothing is matching. Any input please?

Level = 256 - [(256)(P)/100]
IM %: 11.2288
Calculated level: 227.254272

Percentage = .390625(256 - L)
photoshop mean: 28.64
Calculated %: 88.8125

Re: Photoshop histogram mean value != IM mean value

Posted: 2010-08-12T11:38:01-07:00
by fmw42
That paper seems to be about INK densities and not graylevels.

To convert from 8-bit graylevel (range 0 to 255), say call it V (for any R,G,B channel or grayscale) to percent, you simply do:

100*V/255=value in percent