Create multiple ROI in same image in App Designer and store the data in a struct

3 visualizzazioni (ultimi 30 giorni)
I have an image in an axis i App Designer in which i can plot as many ROI's as i'd like using drawcircle. My problem is that i would like to give each ROI a uniqe label and also save the data from my ROI in a struct. Is this possible?

Risposta accettata

Image Analyst
Image Analyst il 20 Giu 2019
Just append it to your structure:
roiStruct(end+1).roi = yourROI;
yourROI could be any form, for example an ROI object, or an N by 2 array of (x,y) coordinates, or a binary image, etc.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by