Made function to go from Uchar to float pixels and back