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

5 ビュー (過去 30 日間)
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?

採用された回答

Image Analyst
Image Analyst 2019 年 6 月 20 日
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.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by