Skip to content

Commit f984cb2

Browse files
authored
Merge pull request #1668 from danforthcenter/update_fill_holes
Updated binary type check in fill_holes.py
2 parents 4995a6e + f7ca5d6 commit f984cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plantcv/plantcv/fill_holes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def fill_holes(bin_img):
2222
:return filtered_img: numpy.ndarray
2323
"""
2424
# Make sure the image is binary
25-
if len(np.shape(bin_img)) != 2 or len(np.unique(bin_img)) != 2:
25+
if len(np.shape(bin_img)) != 2 or len(np.unique(bin_img)) > 2:
2626
fatal_error("Image is not binary")
2727

2828
# Cast binary image to boolean

0 commit comments

Comments
 (0)