Add note about dtype overflow

This commit is contained in:
Johannes Schönberger
2014-01-12 19:48:52 -05:00
parent be3752e922
commit 0f6cb6f1f9
3 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -323,7 +323,8 @@ def sum_percentile(image, selem, out=None, mask=None, shift_x=False,
Only greyvalues between percentiles [p0, p1] are considered in the filter.
Note that the result is truncated to 8 or 16 bit.
Note that the sum may overflow depending on the data type of the input
array.
Parameters
----------
+3
View File
@@ -174,6 +174,9 @@ def sum_bilateral(image, selem, out=None, mask=None, shift_x=False,
Only pixels belonging to the structuring element AND having a greylevel
inside this interval are summed.
Note that the sum may overflow depending on the data type of the input
array.
Parameters
----------
image : 2-D array (uint8, uint16)
+3
View File
@@ -578,6 +578,9 @@ def pop(image, selem, out=None, mask=None, shift_x=False, shift_y=False):
def sum(image, selem, out=None, mask=None, shift_x=False, shift_y=False):
"""Return the local sum of pixels.
Note that the sum may overflow depending on the data type of the input
array.
Parameters
----------
image : 2-D array (uint8, uint16)