Interpreting the output of regionprops function
Show older comments
I have some ellipse in an image and I used regionprops function to find the length of their major and minor axes.
The output of function is in pixels and I need to convert it to millimeters. Consder the following as output of regionprops function and please help me to figure the conversion out:
MajorAxisLength: 320 pixels
MinorAxisLength: 180 pixels
Orientation: 25 degrees
pixel-to-mm conversion factor: 0.1 mm/pixel
Now the question is what are the length of major and minor axes in mm?
Many thanks
Accepted Answer
More Answers (1)
Hi!
It s a simple conversion:
MajorAxisLength = 320 ; % in pixels
MinorAxisLength = 180 ; % in pixels
MinorAxisLength = 0.1*MinorAxisLength % in mm
MajorAxisLength = 0.1*MajorAxisLength % in mm
Hope this helps
-Abderrahim
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!