We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4995a6e + f7ca5d6 commit f984cb2Copy full SHA for f984cb2
plantcv/plantcv/fill_holes.py
@@ -22,7 +22,7 @@ def fill_holes(bin_img):
22
:return filtered_img: numpy.ndarray
23
"""
24
# Make sure the image is binary
25
- if len(np.shape(bin_img)) != 2 or len(np.unique(bin_img)) != 2:
+ if len(np.shape(bin_img)) != 2 or len(np.unique(bin_img)) > 2:
26
fatal_error("Image is not binary")
27
28
# Cast binary image to boolean
0 commit comments