mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-06 05:16:40 +08:00
MAINT: PEP8
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from ._ccomp import label as _label
|
||||
|
||||
|
||||
def label(input, neighbors=None, background=None, return_num=False,
|
||||
connectivity=None):
|
||||
return _label(input, neighbors, background, return_num, connectivity)
|
||||
|
||||
@@ -94,7 +94,8 @@ class _RegionProperties(object):
|
||||
|
||||
if intensity_image is not None:
|
||||
if not intensity_image.shape == label_image.shape:
|
||||
raise ValueError('Label and intensity image must have the same shape.')
|
||||
raise ValueError('Label and intensity image must have the'
|
||||
'same shape.')
|
||||
|
||||
self.label = label
|
||||
|
||||
@@ -282,7 +283,8 @@ class _RegionProperties(object):
|
||||
@_cached
|
||||
@only2d
|
||||
def weighted_moments(self):
|
||||
return _moments.moments_central(self._intensity_image_double(), 0, 0, 3)
|
||||
return _moments.moments_central(self._intensity_image_double(),
|
||||
0, 0, 3)
|
||||
|
||||
@_cached
|
||||
@only2d
|
||||
|
||||
Reference in New Issue
Block a user