What the CvPoint2D32f function does in OpenCV

CvPoint2D32f

I want to know what this function does, for example:

CvPoint2D32f center = cvPoint2D32f(src->width/2,src->height/2);
+3
source share
2 answers

OpenCV has several different data structures for points (that is, x: y or x: y: z coordinates), and their name tells you what type of point.

This particular point is a 2D point - therefore, it only has X and Y coordinates, and they are 32-bit floating point values. What 32f means at the end. A 3D point using 32-bit floating point values ​​will have 3D32f at the end of the data type name.

For more information, see this page in the OpenCV reference documentation.

+6

src (, cv::Mat CvMat).

+2

Source: https://habr.com/ru/post/1719744/


All Articles