Package: skimage / 0.12.3-8

fix_shape_type.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Ole Streicher <olebole@debian.org>
Description: Fix shape type for histogram

The number of bins is always an integer, independently of the image data type.
--- a/skimage/filters/rank/generic.py
+++ b/skimage/filters/rank/generic.py
@@ -977,7 +977,7 @@
     """
 
     if n_bins is None:
-        n_bins = image.max() + 1
+        n_bins = int(image.max()) + 1
 
     return _apply_vector_per_pixel(generic_cy._windowed_hist, image, selem,
                                    out=out, mask=mask,