.... is what part specifically? img_as_float gives a [0.0,1.0] guarantee for unsigned int datatype. otherwise [-1.0,1.0] ...... that probably should be checked as it's feasible for the rgb to be in a np array with signed dtype.