Updated threshold default type to float. Now read pixel scale directly from image hdr.