Does IMWRITE support lossy compression for 16 bit data in MATLAB 7.4 (R2007a)?
Show older comments
I would like to know if I can use IMWRITE with 16 bit data to write images with lossy compression. When I run the code:
X = uint16(65535 * rand(1024,1024));
imwrite(X,'noise.jpg','jpeg','BitDepth',16,'Mode','lossy','Quality',75);
??? Error using ==> imagesci\private\writejpg at 61
Lossy compression not supported for 16 bit data.
Accepted Answer
More Answers (0)
Categories
Find more on Audio and Video Data 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!