Update measure.regionprops.weighted_moments_central doc

The documentation is misleading. In fact, the code does do what a user would expect: use the weighted centroid coordinates, not the centroid coordinates. It's one word, but it's an important one!

https://github.com/scikit-image/scikit-image/blob/master/skimage/measure/_regionprops.py#L291
This commit is contained in:
Joel Frederico
2015-05-14 17:15:00 -07:00
parent a74ba0ec54
commit 575689baf2
+2 -1
View File
@@ -445,7 +445,8 @@ def regionprops(label_image, intensity_image=None, cache=True):
wmu_ji = sum{ array(x, y) * (x - x_c)^j * (y - y_c)^i }
where the sum is over the `x`, `y` coordinates of the region,
and `x_c` and `y_c` are the coordinates of the region's centroid.
and `x_c` and `y_c` are the coordinates of the region's weighted
centroid.
**weighted_moments_hu** : tuple
Hu moments (translation, scale and rotation invariant) of intensity
image.