Why the same data yielding different values?
이전 댓글 표시
Code:
abc=reshape( rate, size(CoverImage));
imageasbytes = typecast(abc(:), 'uint8');
imwrite(abc, 'exchan.jpg');
ss=imread('exchan.jpg');
imageasbytes2 = typecast(ss(:), 'uint8');
Both
imageasbytes2 and imageasbytes are giving different values inspite of the fact that I wrote that data ;
when i read the same file, values changed.
Why are they giving different values??
답변 (1개)
Walter Roberson
2013년 4월 21일
1 개 추천
The JPEG image format uses lossy compression unless you specifically ask for lossless compression.
카테고리
도움말 센터 및 File Exchange에서 Denoising and Compression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!