ROI object property "does not exist"?

2 views (last 30 days)
Veena Chatti
Veena Chatti on 10 Mar 2020
Commented: Veena Chatti on 18 Mar 2020
Hi all,
I've been creating ROIs using specific coordinates in images, and strangely I see that when I click on the ROI object in the workspace (1x1 Circle) and click on its properties (ex. Radius) there's just a message saying "The variable w.Radius does not exist".
When I call the property in the workspace with a w.Radius command, I get the message:
Invalid or deleted object. Error in images.roi.Circle/get.Radius
What's going on? I get the same message for other properties of the ROI, including Center, which is totally weird, because I actually gave it the coordinates in which it was supposed to position the center of the circle, which it did accurately (looking at the image).
Thanks for sharing your tips and expertise!
Best,
Veena
  2 Comments
Turlough Hughes
Turlough Hughes on 11 Mar 2020
One can only be guess without seeing the code you used to end up with that error. Can you provide the code you've used so far or something representative of the steps your code implements?
Veena Chatti
Veena Chatti on 18 Mar 2020
Hi Turlough,
Sorry for my late response to your answer- I realized that the ROI object would only be accessible as long as I had the figure open.
Best,
Veena

Sign in to comment.

Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!