Hmm, I hadn't considered that the user might submit a labeled image with a different connectivity... I agree with @RONNCC that a float image as input doesn't make much sense. But in the case of an int image, there could be two desired behaviors:
1. Assume the image is labeled as the user wants it to be labeled, and just do the count-and-remove.
2. Assume that the image should be interpreted as boolean and then proceed accordingly.

I prefer interpretation 1 (clearly). I'll document it in the docstring, but you are welcome to chime in with your preferred intuition. One argument in favor of 1 is that users often have pre-labeled images, and it would be inefficient to convert to bool just to convert back to int.