Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.