필터 지우기
필터 지우기

save image with drawn shapes on it

조회 수: 2 (최근 30일)
mary
mary 2011년 6월 8일
Hi, i wanna save an image (not the figure) that i have drawn several shapes(using imellipses, imrect,...) and now i wanna save it with it's shapes on it. how can i do it? tnx for your help

답변 (2개)

Sean de Wolski
Sean de Wolski 2011년 6월 8일
  댓글 수: 1
mary
mary 2011년 6월 12일
but i want to be able to modify those shapes that i have drawn on it.
as i use hgsave and hgload the handles change and then i can't work with that shape anymore.

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


Image Analyst
Image Analyst 2011년 6월 12일
If you have something that you want to permanently save to an image file on disk, see the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_save_my_figure.2C_axes.2C_or_image.3F_I.27m_having_trouble_with_the_built_in_MATLAB_functions.
If you have something temporary and the user will need to change it in the second running of your program, then you're going to have to save all the various parameters that created the shapes in the first place, such as their vertex coordinates, line widths, colors, etc., to a mat file and then recall them and reconstruct your figure.
  댓글 수: 1
mary
mary 2011년 6월 14일
how can i get the coordinates of ellipses and freehands ... that i drawn on my figure?

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

Community Treasure Hunt

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

Start Hunting!

Translated by