This question might have been answered before but I could not find a clear one searching the forums.
First I understand 32768 and not 32767 (from 0 that would be 15 bits) because it simplifies the math and accelerate processing.
Can someone confirm this?
Second this is only 15 bits so where is gone the 16th one, Why is it hidden and what is it used for?
I need to understand exactly how and why it works like that and how a Tiff gray 16 bits would convert in Photoshop because I use this format to process 3D scans of surfaces... convert the depth values of my 3D in levels of grays, processing in Photoshop and then reexporting to 3D for routing.
perspixe wrote:
First I understand 32768 and not 32767 (from 0 that would be 15 bits) because it simplifies the math and accelerate processing.
Can someone confirm this?
Yes, 0-32768 (a total of 32769 levels) is 15 bits plus 1 level and yes it's on purpose for simplified processing...
While it's "called" 16 bits in Photoshop, it's really not. It's certainly high bit, just not 16 bits...and this is the way Photoshop has always worked from the time that high bit files could be opened in Photoshop.
Just a little misunderstanding... when i talked about the last bit I meant the 16th bit.
In theory with 8 bits we should have 256 (2ˆ8) different values and with 16 bits, 65536 values (2ˆ16).
But for 32768 values (32769, as we saw previously) we need only 15 bits (2ˆ15).
Here is my missing bit the 16th one.
Is the 16 bits thing just a name but in reality we have only 15?
I would guess so as it was stated clearly that calculations are based on 0-32768.
Is there a reason behind it?
No - read it again.
0 to 32768, not 0 to 32767.
If the maximum value was 32767, it would only need 15 bits. It would also not have a midpoint, and still need to use divides.
But the maximum value is 32768, so there are 32769 values, the high bit does get used, there is a midpoint, and we don't have to use a divide.
16 bit does not mean that the maximum value is 65535, it just means that the values require 16 bits to represent the values.
ok you have a point here.
So out of the last bit that in theory could give 32768 extra values, only one is actually used
But if the 16th bit was fully used then the maximum value would be 65535, and loosing the midpoint, or a 17th bit would have been necessary to get the value 65536... to get the midpoint back. Am I right?
About calculations:
HSB using B
100% gives 32768 reading with eyedropper
1% gives 164 (seems not correct, should be 328) in grayscale reading with eyedropper but R G and B all at 326 (seems not correct, should be 328, note that file is grayscale 16 bits but values readable in RGB)
2% gives 328 (seems not correct, should be 656) in grayscale reading with eyedropper but R G and B all at 652 (seems not correct, should be 656)
10% gives 1773 (seems not correct, should be 3277, but in any case 164x10 is 1640 so 10% is not 1%x10, so we don't have anything linear here as you suggested) in grayscale reading with eyedropper but R G and B all at 3274 (seems not correct, should be 3277)
etc
99% gives 32355 (seems not correct, should be 32440) in grayscale reading with eyedropper but R G and B all at 32442 (seems not correct, should be 32440)
This gets me quite confused
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2012 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).