What is the type of the elements of a cv::Mat, whose type is CV_16F?
I need to know because I need to iterate through the elements, but I don't know which iterator I should use.
For example, if the type is CV_32F, I use mat.begin<float>().
For CV_64F: mat.begin<double>().
What about CV_16F?
OpenCv implements a float16_t class. It may be related.
This class seems to use ushort to store the float16_t data.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With