mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 20:22:51 +08:00
Improve documentation of bounding box
This commit is contained in:
@@ -112,6 +112,12 @@ class _RegionProperties(object):
|
||||
return np.sum(self.image)
|
||||
|
||||
def bbox(self):
|
||||
"""
|
||||
Returns
|
||||
-------
|
||||
A tuple of the bounding box's start coordinates for each dimension,
|
||||
followed by the end coordinates for each dimension
|
||||
"""
|
||||
return tuple([self._slice[i].start for i in range(self._ndim)] +
|
||||
[self._slice[i].stop for i in range(self._ndim)])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user