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!