How to set a position to imfreehand?

조회 수: 2 (최근 30일)
Junia Josephine D
Junia Josephine D 2016년 3월 1일
댓글: Image Analyst 2016년 3월 1일
I get the position of the imfreehand using
re =imfreehand(gca); position = getPosition(re);
now I need to know , is it possible to use this "position" to retrieve the desired roi ? Or is it possible to use this position in creating mask?

답변 (1개)

Image Analyst
Image Analyst 2016년 3월 1일
See my freehand masking demo, attached.
  댓글 수: 2
Junia Josephine D
Junia Josephine D 2016년 3월 1일
I have seen this demo. But what I need is to use the position which I get in previous execution and set that position value in future execution of code
Image Analyst
Image Analyst 2016년 3월 1일
You can save either the binary image mask, or the x,y coordinates, or both to a .mat file with the save() function. Then on future executions, call load() to recall the mask data.

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

카테고리

Help CenterFile Exchange에서 Author Block Masks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by