As we know there is 256 levels of luminence in Photoshop, it's ! the number of 0-255 levels,
as my opinion, the 50% gray's value of RGB should be 127 as the middle gray.
But, the value of RGB is 128 when I use the " Editor-Fill-50% middle gray " to fill a layer in Photoshop.
Copy link to clipboard
The mid point would actually be 255/2 = 127.5. But 8 bit does not have half values so rounded that is 128. If you switch the info panel to 16 bit (which in Photoshop is actually 15 bit) you will see the value is 32768/2 = 16384
Got it .
So, in other app like Adobe After Effects the 16 bit will also be 15 bit ?
Its 8 bits and 16 bits you count all bit off state off it a binary thing 0 to 255 is 256 values 0 to 32767 is 32768 values you start a 0 not 1.
Full 16 bit would be 65536 values (0-65535) 15 bit gives 32768 (0-32767). Photoshop actually manages 0-32768 = 15 bit +1. Just why they built it like that I am not sure.
Number 7 - Not sure on After Effects, I'll have a look later.
Thanks R_Kelly that is interesting reading. The integer middle value makes a lot of sense
Yes full 16 bit would be 65K values for red an green and blue 48bit. RAW values are from Camera sensor and its a single value for each pixels and what 16bit means depends on how many bits the camera uses of the full 16 bit. The range or values varies 10, 12, or 14 bit. These values are handled by software. How its done in software does not matter to me that much as long as I can do what I want to do with the application UI, features, plug-in and add-ons. At my age I'm not going to learn C and program a the bit level. I'll never understand Laplace transform, inverse Laplace transform, Why Laplace transform work and are useful for doing whatever. Then there are Z transform and Fourier Transform all are not for what is my left of my little brain? That path would be too long for me to learn all that is need to process images at the bit level my demise path would be too big of an interruption to overcome.
Even so, the 128th value of RGB should be 127, it's not the 50% gray's value (128) in Photoshop. So, Thank you anyway.
It depends on where you start. If you start from White (255) the 128h value of RGB is 128, not 127.
So nobody cares about the 0 anymore? Yes the maximum value you can enter is 255, but the 0 is still the first value you can enter. So what you could do is take (255 + 1) / 2 -1 which gives you 127 as a middle value. However since 256 is an even number of possible values, 127 and 128 is still as much "middle" as each other, it just makes more sense to count upp to halfway in my mind. To get true middle you would need 127.5 or a different amount of maximum values that is an odd number. Like 0 - 10, that is 11 possible values when you include the 0. (0, 1, 2, 3, 4) [middle 5] (6, 7, 8, 9, 10), so 5 is truly middle with 5 possible answers on each side of it.
'To get true middle you would need 127.5'
That's exactly what was said 5 years ago.
As there are no half's in 8 bit integer the value of 127.5 is rounded to 128. Normal mathematical rounding rounds down 0-0.4 and rounds up 0.5 to 0.9.