How do I change from 24 bit depth to 8 bit depth image?
I have image data for my input 256x256x3 uint8 and the bit depth is 24. My question is, how can I change from 24 bit depth image to 8 bit depth image without changing the colortype in ‘truecolor’? Here’s my ans value. And here’s my codes to read image and info image:-
>> I=imread(‘1234.png’);
>> imfinfo(‘1234.png’)I have image data for my input 256x256x3 uint8 and the bit depth is 24. My question is, how can I change from 24 bit depth image to 8 bit depth image without changing the colortype in ‘truecolor’? Here’s my ans value. And here’s my codes to read image and info image:-
>> I=imread(‘1234.png’);
>> imfinfo(‘1234.png’) I have image data for my input 256x256x3 uint8 and the bit depth is 24. My question is, how can I change from 24 bit depth image to 8 bit depth image without changing the colortype in ‘truecolor’? Here’s my ans value. And here’s my codes to read image and info image:-
>> I=imread(‘1234.png’);
>> imfinfo(‘1234.png’) bitdepth, image processing MATLAB Answers — New Questions