Clear Filters
Clear Filters

How do I change from 24 bit depth to 8 bit depth image?

14 views (last 30 days)
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')

Accepted Answer

Walter Roberson
Walter Roberson on 27 Jun 2023
imread() im2uint8() imwrite()

More Answers (0)


Find more on Images in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!