Usage of regionprops3 command

4 次查看(过去 30 天)
How does the command 'regionprop3' interpret an RGB image? The reference page for the same tabulates some properties for grayscale images but it is accepting RGB and HSV (three channel) images.
And how to interpret or calculate 'orientation' and 'ConvexVolume' properties?
If regionprops3 cannot be used for 3 channel images, is there a way to get the lengths of major and minor axes of a convex hull produced by 'convhull' command?

采纳的回答

Guillaume
Guillaume 2020-2-21
but it is accepting RGB and HSV (three channel) images.
No, regionprops3 is for volumes exclusively. If you pass it a 2D colour image (MxNx3) it will be interpreted as a (very thin, only 3 layers) 3D label matrix.Or if you're talking about colour volumes (MxNx3xP), these can't be passed to regionprops3 directly, you'll need to convert to greyscale and then binarise the volume.
If you are working with 2D images, you need to use regionprops not regionprops3. Again, a colour image must be binarised (or labeled).
  1 个评论
Pooja Patil
Pooja Patil 2020-2-21
How do I measure the Principal Axis Length of the below figure? I request to kindly help

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by