Dear MatLab Experts,
I would greatly appreciate your help at understanding how to use the output of builtin function 'regionprops'
My understanding is that it would output a scalar value for each selected property for each connected component.
I have a set of closed curves that I convert to binary masks. The attached zipped archive contains some of such curves.
Each closed curve is descrived by the ordered coordinates in a text file.
Each curve contain only one connected component.
However, when i call 'regionprops' I get a vector of values for each feature I selected.
For instance, how can I have 255 'Area' values and 255 centroid coordinate pairs?
I have attached my script 'Get-Collimator_Features.m' that calls builtin function 'regionprops'.
How can I reduce a vector to a single scalar value, for instance for the Area, etc...?
Some correct usage examples of 'regionprops' would be very appreciated.
Thank you very much.