How to save the contour as a image?

조회 수: 21 (최근 30일)
muhammad choudhry
muhammad choudhry 2020년 7월 20일
답변: Image Analyst 2020년 7월 21일
Hi,
I am generating the contours with the code below but would like to know, how to save that contour as an image into the folder, do not mind the format of the picture it will be saved in!
Code:
I = imread(frame1.jpg);
imcontour (I,2);
I am not sure what other command to use after imcontour to save it directly as a image, I can save manually by using figure() but is there a way that I can save it directly to some folder.

채택된 답변

KSSV
KSSV 2020년 7월 20일
  댓글 수: 1
muhammad choudhry
muhammad choudhry 2020년 7월 20일
Thanks alot for the link bro, worked!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2020년 7월 21일
If you have r2020a or later, use exportgraphics().

Community Treasure Hunt

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

Start Hunting!

Translated by