First time here? Check out the FAQ!
answered 2016-08-09 17:41:32 -0600
It's possible some of the float values are outside of the range. Use cv::saturate_cast<uint16_t>() to safely convert them to ushorts.