Jordan Petrov
Jordan Petrov

Reputation: 31

OpenCV CV_16F type

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?

Upvotes: 3

Views: 2075

Answers (1)

tthibalti
tthibalti

Reputation: 544

OpenCv implements a float16_t class. It may be related.

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

Upvotes: 3

Related Questions