스케일 된 값으로 이미지 저장을 하려면 어떻게 해야하나요?

7 ビュー (過去 30 日間)
JongIk Jeong
JongIk Jeong 2020 年 9 月 7 日
回答済み: Vinai Datta Thatiparthi 2020 年 9 月 16 日
이미지를 스케일된 형식으로 실행하기 위해서는 image(example,'CDataMapping','scaled')를 사용하는데
imwrite를 이용해서 간단하게 스케일된 파일을 저장하기 위해서는 어떻게 해야하나요?

回答 (1 件)

Vinai Datta Thatiparthi
Vinai Datta Thatiparthi 2020 年 9 月 16 日
Hey,
Use the imagesc function to display an image with scaled colors.
data = rand(20);
imagesc(data,'CDataMapping','scaled');
Then, use the saveas function to save the scaled image that is being presently displayed.
saveas(gcf, 'filename.png')
% Here, gcf --> Get Current Figure
% File can be saved in any of the allowed format
Hope this helps!

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!