Saving Matlab figure(Imagesc) to JPG without White borders
조회 수: 16 (최근 30일)
이전 댓글 표시
Hi,
I am using imagesc to plot color maps in matlab. While saving as JPG and Figuire it gives white space around the image. Is it possible to save without white space?
imagesc(Subject_Assist_Quest);
set(gca,'YDir','normal')
axis off
댓글 수: 3
Elinor Kath
2021년 3월 16일
When I try this I get: "Warning: Background transparency is not supported; using white instead. " So far I haven't found a workaround.
Image Analyst
2021년 3월 16일
You can ignore the warning. Is white not OK? Why are you having transparent pixels anyway?
채택된 답변
추가 답변 (1개)
Image Analyst
2018년 12월 20일
Yes, use imwrite:
imwrite(Subject_Assist_Quest, filename);
Do not save image analysis images as JPG or you'll be sorry. Use PNG.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!