mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-08 11:26:12 +08:00
TST: Fix AttributeError: '_RegionProperties' object has no attribute 'weighted_moments_central'
This commit is contained in:
@@ -269,9 +269,9 @@ def test_solidity():
|
||||
assert_almost_equal(solidity, 0.580645161290323)
|
||||
|
||||
|
||||
def test_weighted_moments_central():
|
||||
def test_weighted_central_moments():
|
||||
wmu = regionprops(SAMPLE, intensity_image=INTENSITY_SAMPLE
|
||||
)[0].weighted_moments_central
|
||||
)[0].weighted_central_moments
|
||||
ref = np.array(
|
||||
[[ 7.4000000000e+01, -2.1316282073e-13, 4.7837837838e+02,
|
||||
-7.5943608473e+02],
|
||||
|
||||
Reference in New Issue
Block a user