i have double array and i want to rescale it in the range (0,1) and then convert it into jpg.how to do it?
2 ビュー (過去 30 日間)
古いコメントを表示
i have double array and i want to rescale it in the range (0,1) and then convert it into jpg .how to do it?
0 件のコメント
回答 (1 件)
Walter Roberson
2019 年 1 月 21 日
mat2gray() followed by imwrite()
Note: true grayscale jpg are very uncommon in practice, but they have been valid for quite a while. They are not handled by some rather old browers (e.g., don't expect to display them easily in Windows XP time frame.)
In practice nearly all jpeg are RGB images.
Reminder: JPEG is a lossy image format, so if you expect to be able to read back in exactly what you wrote out, then you should use a different image format.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!