Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn users of
remove_small_objects
about type
When input type is `int`, we assume that the image is pre-labeled. However, when only 0 and 1 are present, it may be that the user expects us to treat it as a binary image. We don't, but now issue a warning that they might want to use a bool image. Fixes #1178.
- Loading branch information
a2def31
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jni This is a small, easily-fixable bug:
The warning block doesn't check if the user actually supplied a boolean array, causing the warning to be thrown every time a boolean array with at least one True element is provided as input.