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.
Best Answer