OpenCV why does setting a Mat equal to a decimal less than 1 not cause all of the values in the Mat to become 0?
I need help figuring out how OpenCV handles setting a matrix equal to something. I have an 8-Bit Mat called Radiance that I want to tone map. Here is working code that accomplishes this for me, with K being the constant 450. cv::cvtColor(radiance, radiance, CV_BGR2XYZ); radiance = (K * radiance)/(1 + (K * radiance)); cv::cvtColor(radiance, radiance, CV_XYZ2BGR);` This does not seem like it should work, but it does. It will create a fully tone mapped image that looks great. However, if you try to do this method on the individual pixels, they become a decimal that is between 0 and 1, which trunc
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.