if a image compression code is applied on the 3 bit per pixel image then what changes to made if i have to use the same code for 8bpp image.

3 views (last 30 days)
or no changes are required.

Answers (1)

Image Analyst
Image Analyst on 14 Mar 2015
Once you read the image into MATLAB from a disk file, the images are what they are, and in most cases this means they are uint8, which means 8 bits per pixel. You can get the compressed data in without decompressing if you use fread() instead of imread() but then you just have a bunch of data that is not suitable for display in an axes with a function like imshow(). So I'm not sure if, after you've read in your image data, if you used fread() and so it's still compressed, or if you used imread() or your own decompression routine and it's now been decompressed and is at the full 8 bits per pixel. Maybe you can clarify.

Tags

Community Treasure Hunt

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

Start Hunting!