convert specify the valid range of pixel values
Posted: 2015-05-07T02:56:37-07:00
Hi all,
I have an image with 12bit/pixel data. That is, the pixel values range from 0 to 2^12-1.
But the pixel is stored in two bytes. (16 bits out of which only 12 bits are valid)
Is there a way I can make convert to process only 12 bits and not entire 16 bits ?
Because I tried using enhance using "depth 16" option and it has generated output whose values range from 0 to 65535. But I want the output also to restrict to 12 bits.
Which convert option can be used ? Depth doesn't seem be correct option.
Thanks!
I have an image with 12bit/pixel data. That is, the pixel values range from 0 to 2^12-1.
But the pixel is stored in two bytes. (16 bits out of which only 12 bits are valid)
Is there a way I can make convert to process only 12 bits and not entire 16 bits ?
Because I tried using enhance using "depth 16" option and it has generated output whose values range from 0 to 65535. But I want the output also to restrict to 12 bits.
Which convert option can be used ? Depth doesn't seem be correct option.
Thanks!