스케일 된 값으로 이미지 저장을 하려면 어떻게 해야하나요?
이전 댓글 표시
이미지를 스케일된 형식으로 실행하기 위해서는 image(example,'CDataMapping','scaled')를 사용하는데
imwrite를 이용해서 간단하게 스케일된 파일을 저장하기 위해서는 어떻게 해야하나요?
답변 (1개)
Vinai Datta Thatiparthi
2020년 9월 16일
Hey,
data = rand(20);
imagesc(data,'CDataMapping','scaled');
saveas(gcf, 'filename.png')
% Here, gcf --> Get Current Figure
% File can be saved in any of the allowed format
Hope this helps!
카테고리
도움말 센터 및 File Exchange에서 최근접이웃에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!