Info
This question is closed. Reopen it to edit or answer.
roipoly with a specified area
2 views (last 30 days)
Show older comments
Hi there, I am interested in specifiying a region of interest in an image, with a specified area A. A possibility is maybe to modify the roipoly function, but I don't know how to do it quickly.
I am quite new and I don't know if in matlab there are similar functionalities...
Thanks to all
Alessio
0 Comments
Answers (2)
Sean de Wolski
on 18 Jul 2011
How about poly2mask?
doc poly2mask
2 Comments
Sean de Wolski
on 19 Jul 2011
Well, yes you'll probably have to write some code. But you can easily and quickly generate masks of a non-convex area with poly2mask, and then sum it or use bwarea to get its area, and then dilate it or erode it automatically if too big or too small.
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!