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 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Image Analyst
2015-3-14
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Import, Export, and Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!