basic data typesc++
helper objects算法
large array types數組
cv::Mat classide
模板類 cv::Vec<>ui
fixed matrix classesspa
point classes3d
cv::Scalarcode
cv::Size and cv::Rectcomponent
有兩個模板對象
<font color=red size =22>Example</font>
Operation | Example |
---|---|
Default constructors | cv::Point2i p; cv::Point3f p; |
Copy constructor | cv::Point3f p2( p1 ); |
Value constructors | cv::Point2i p( x0, x1 ); cv::Point3d p( x0, x1, x2 ); |
Cast to the fixed vector classes | (cv::Vec3f) p; |
Member access | p.x; p.y; // and for three-dimensional // point classes: p.z |
Dot product | float x = p1.dot( p2 ) |
Double-precision dot product | double x = p1.ddot( p2 ) |
Cross product | p1.cross( p2 ) // (for three-dimensional point // classes only) |
Query if point p is inside rectangle r | p.inside( r ) // (for two-dimensional point // classes only) |
associated with the STL complex number class template complex<>
Many algorithms require a stopping condition to know when to quit
COUNT
or MAX_ITER
cv::TermCriteria
封裝一個或兩個中止條件,直接傳遞給OpenCV算法
有三個成員變量type
, maxCount
, epsilon