why after I use the imwrite function, the pixels in the image are changed diferrent? before I convert from double matrix to uint8 matrix ?
2 次查看(过去 30 天)
显示 更早的评论
embed1=uint8(blkproc(embed1,[8 8],@idct2));
imwrite(embed1,'embeddct.jpg');
AA=imread('embeddct.jpg');
0 个评论
回答(1 个)
Looky
2017-11-8
编辑:Looky
2017-11-8
This is likely a result from the compression/decompression process involved when saving to a jpg file. Choose a better suited file format like '.bmp' if you want the exact equality of saved and loaded data.
imwrite(embed1,'embeddct.bmp');
AA=imread('embeddct.bmp');
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Denoising and Compression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!