How to set a position to imfreehand?

1 visualizzazione (ultimi 30 giorni)
Junia Josephine D
Junia Josephine D il 1 Mar 2016
Commentato: Image Analyst il 1 Mar 2016
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?

Risposte (1)

Image Analyst
Image Analyst il 1 Mar 2016
See my freehand masking demo, attached.
  2 Commenti
Junia Josephine D
Junia Josephine D il 1 Mar 2016
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 il 1 Mar 2016
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.

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by