-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOC] clarify that the inertia_tensor may be nD in documentation #4013
[DOC] clarify that the inertia_tensor may be nD in documentation #4013
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for tackling this, @marshuang80! I left some comments already 😅
skimage/measure/_regionprops.py
Outdated
@@ -657,10 +657,10 @@ def regionprops(label_image, intensity_image=None, cache=True): | |||
bounding box. | |||
**image** : (H, J) ndarray | |||
Sliced binary region image which has the same size as bounding box. | |||
**inertia_tensor** : (2, 2) ndarray | |||
**inertia_tensor** : (Ndim, Ndim) ndarray |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think only mentioning this as ndarray
should be sufficient:
**inertia_tensor** : ndarray
skimage/measure/_regionprops.py
Outdated
Inertia tensor of the region for the rotation around its mass. | ||
**inertia_tensor_eigvals** : tuple | ||
The two eigen values of the inertia tensor in decreasing order. | ||
The N eigen values of the inertia tensor in decreasing order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The N
here is not necessary. It could be:
The eigenvalues of the inertia tensor in decreasing order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @marshuang80!
Thanks! |
Description
Fixed import issue and documentation for inertia_tensor #4004
Checklist
For reviewers
later.
__init__.py
.doc/release/release_dev.rst
.@meeseeksdev backport to v0.14.x