Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenCV CV_16F type

Tags:

c++

opencv

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?

like image 574
Jordan Petrov Avatar asked May 23 '26 02:05

Jordan Petrov


1 Answers

OpenCv implements a float16_t class. It may be related.

This class seems to use ushort to store the float16_t data.

like image 197
tthibalti Avatar answered May 25 '26 15:05

tthibalti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!