You assume here that non-bool images are already labelled using the structuring element. Isn't it more reasonable to convert the float or int image to a bool image? I'm not sure...

Either way we need to describe this behavior in the doc string above.