MATLAB: Change bit depth for a PNG image

image processingImage Processing Toolbox

hello , i have a dataset of images with 12 bit represantation and i want to know if it is possible to convert them to 8 bit representation . thanks

Best Answer

Yes. How do you want to do it? Scale linearly? Or take the upper or lower 8 bits and throw away 4 bits? Maybe you can try mat2gray().
Related Question