imwrite function
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm facing the problem that when I save my modified image by using imwrite function, the resultant image has different pixel values. How to save an image without affecting it's pixels?
댓글 수: 0
채택된 답변
Ashish Uthama
2012년 4월 4일
Your previous comment specified that the file format you are using is JPEG.
JPEG uses lossy compression, so you cannot expect the written values to be the same as the in-memory array.
Try writing to an uncompressed/lossless compression format like PNG or BMP.
댓글 수: 0
추가 답변 (1개)
Walter Roberson
2012년 4월 3일
What datatype is your image, and what value range is the data you are saving, and what value range is the saved image when it is read back in? Also, which image format are you saving as?
참고 항목
카테고리
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!