From 98c4e2366e267cd9f951912cc58b0fafb3c424dc Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 21 May 2015 01:30:17 +0200 Subject: [PATCH 1/3] ellipse documentation was corrected --- skimage/measure/_regionprops.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skimage/measure/_regionprops.py b/skimage/measure/_regionprops.py index b671e009..830e2336 100644 --- a/skimage/measure/_regionprops.py +++ b/skimage/measure/_regionprops.py @@ -364,8 +364,9 @@ def regionprops(label_image, intensity_image=None, cache=True): Coordinate list ``(row, col)`` of the region. **eccentricity** : float Eccentricity of the ellipse that has the same second-moments as the - region. The eccentricity is the ratio of the distance between its - minor and major axis length. The value is between 0 and 1. + region. The eccentricity is the ratio of the focal distance + (distance between focal points) over the major axis length. + The value is in the interval [0, 1). When it's 0, the ellipse becomes a circle. **equivalent_diameter** : float The diameter of a circle with the same area as the region. **euler_number** : int From bcb5b34fef36a587ec106a24a8549d7c07cd8ccf Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 21 May 2015 02:06:27 +0200 Subject: [PATCH 2/3] more formal documentation --- skimage/measure/_regionprops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/measure/_regionprops.py b/skimage/measure/_regionprops.py index 830e2336..9fec2f59 100644 --- a/skimage/measure/_regionprops.py +++ b/skimage/measure/_regionprops.py @@ -366,7 +366,7 @@ def regionprops(label_image, intensity_image=None, cache=True): Eccentricity of the ellipse that has the same second-moments as the region. The eccentricity is the ratio of the focal distance (distance between focal points) over the major axis length. - The value is in the interval [0, 1). When it's 0, the ellipse becomes a circle. + The value is in the interval [0, 1). When it is 0, the ellipse becomes a circle. **equivalent_diameter** : float The diameter of a circle with the same area as the region. **euler_number** : int From ff1322938ee6c22321d2e1466bedecd1954ab6e4 Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 21 May 2015 07:58:56 +0200 Subject: [PATCH 3/3] pep line width violation corrected --- skimage/measure/_regionprops.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skimage/measure/_regionprops.py b/skimage/measure/_regionprops.py index 9fec2f59..ca778272 100644 --- a/skimage/measure/_regionprops.py +++ b/skimage/measure/_regionprops.py @@ -366,7 +366,8 @@ def regionprops(label_image, intensity_image=None, cache=True): Eccentricity of the ellipse that has the same second-moments as the region. The eccentricity is the ratio of the focal distance (distance between focal points) over the major axis length. - The value is in the interval [0, 1). When it is 0, the ellipse becomes a circle. + The value is in the interval [0, 1). + When it is 0, the ellipse becomes a circle. **equivalent_diameter** : float The diameter of a circle with the same area as the region. **euler_number** : int