You are right images are generally labelled using ints. Nevertheless, you can label parts of images with whatever dtype you like as long as one "class" or region has the same value/label. We should raise an exception for float images.

@jni: I definitely prefer option 1!