tags:

views:

362

answers:

1
CvPoint2D32f

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

CvPoint2D32f center = cvPoint2D32f(src->width/2,src->height/2);
+2  A: 

OpenCV has a few different data structures for points (that is, x:y or x:y:z coordindates) and their name tells you what type of point it is. This particular point is a 2D Point--so it has just X and Y coordindates--and they are 32-bit floating point values. That's what the 32f at the end means. A 3D point that uses 32-bit floating point values would have 3D32f at the end of the data type name.

See the following page in the OpenCV reference documentation for more info: http://opencv.willowgarage.com/documentation/basic_structures.html

Jesse DeGuire