Skip to content

PyDIP - use of MeasurementTool.Measure #137

Answered by crisluengo
yg42 asked this question in General
Discussion options

You must be logged in to vote

It's the length of the small and large diameters of the best fit ellipsoid, in physical units if they were attached to the image (and the two dimensions have the same units), otherwise in pixels.

If you also want the angle of ellipsoid, use 'MajorAxes', which is the eigenvector matrix (4 values in 2D). So you get the two unit vectors corresponding to each of the two axes of the ellipsoid. Draw those vectors, each with a length corresponding to half of 'DimensionsEllipsoid', to see the two main radii of the ellipsoid.

'Center' is the centroid of the object, and thus also of the ellipsoid.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yg42
Comment options

@crisluengo
Comment options

Answer selected by crisluengo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants