opencv的类型和方法在不同语言中的对应关系
来源:互联网 发布:先锋编辑软件 编辑:程序博客网 时间:2024/06/04 17:50
转载请注明:http://blog.csdn.net/yimingsilence/article/details/50382349
Basic Structures
main data structures used in OpenCV.
OpenCV中的 C 结构
OpenCV中的 C++ 封装
EmguCV中的 C# 封装
CvPoint
CvPoint2D32f
CvPoint2D64f
CvPoint3D32f
CvPoint3D64fPoint_<typename _Tp>
Point3_<typename _Tp>
Point_<int>(Point2i, Point)
Point_<float>(Point2f)
Point_<double>(Point2d)
Point3_<float>(Point3f)
Point3_<double>(Point3d)
Point3_<int>(Point3i)
System.Drawing.Point
System.Drawing.PointF
MCvPoint2D64f
MCvPoint3D32f
MCvPoint3D64f
CvSize
CvSize2D32fSize_<typename _Tp>
Size_<int>(Size, Size2i)
Size_<float>(Size2f)
System.Drawing.Size
System.Drawing.SizeF
CvRectRect_<typename _Tp>
Rect_<int>(Rect)
System.Drawing.Rectangle
CvScalar (A container for 1-,2-,3-or4-tuples of doubles)Scalar_<typename _Tp>
Scalar_<double>(Scalar)
(:public Vec<_Tp, 4>)
(Scalar is widely used to pass pixel values)
MCvScalarCvBox2DRotatedRectMCvBox2DCvMat (A multi-channel dense matrix)MatMCvMat
MCvHistogram
Matrix<TDepath>CvMatND (Multi-dimensional dense multi-channel array)MatMCvMatND
MatND<TDepth>IplImageMatMIplImage
Image<TColor, TDepth>CvSparseMatSparseMatSparseMatrix<TDepath>CvArr (“metatype”only used as function parameter)InputArray
OutputArrayCvArray<TDepth>CvTermCriteria (Termination criteria for iterative algorithms)TermCriteria
MCvTermCriteria
Dynamic Structures
for creating growable sequences and other dynamic data structures allocated in CvMemStorage. If you use the new C++, Python, Java etc interface, you will unlikely need this functionality. Use std::vector or other high-level data structures instead.
OpenCv中的 C 结构OpenCV中的 C++ 封装
Emgu.CV中的 C# 封装
CvMemStorageMemStorageMemStorageCvMemBlock CvMemStoragePos CvSeqSeq<typename _Tp>MCvSeq
Seq<T>CvSliceRangeMCvSliceCvSet (derived from CvSeq) MCvSetCvGraph (derived from CvSet) CvGraphScanner (used for depth-first graph traversal) CvTreeNodeIterator (used to traverse trees of sequences)
Extra C++ Basic Structures
some basic structures in C++ version.
Matx<typename _Tp, int m, int n>
- typedef Matx<float, 1, 2> Matx12f;
- typedef Matx<double, 6, 6> Matx66d;
Vec<typename _Tp, int n> (:public Matx<_Tp, n, 1>)
- typedef Vec<uchar, 2> Vec2b;
- typedef Vec<short, 4> Vec4s;
- typedef Vec<int, 3> Vec3i;
- ...float,double...
Ptr<typename _Tp> for smart reference-counting pointers
Matrix Expressions: (Mat A, B; Scalar s; double alpha)
- Addition, substraction, negation: A + B, A - B, A + s, A - s, s - A, -A
- Scaling: A * alpha
- Per-element multiplication and division: A.mul(B), A/B, alpha/A
- Matrix multiplication: A*B
- Transposition: A.t() (means AT)
- Matrix inversion and pseudo-inversion, solving linear systems and least-squares problems: A.inv([method]) (~ A-1) , A.inv([method])*B (~ X: AX=B)
- Comparison: A cmpop B, A cmpop alpha, alpha cmpop A, where cmpop is one of : >, >=, ==, !=, <=, <. The result of comparison is an 8-bit single channel mask whose elements are set to 255 (if the particular element or pair of elements satisfy the condition) or 0.
- Bitwise logical operations: A logicop B, A logicop s, s logicop A, ~A, where logicop is one of : &, |, ^.
- Element-wise minimum and maximum: min(A, B), min(A, alpha), max(A, B), max(A, alpha)
- Element-wise absolute value: abs(A)
- Cross-product, dot-product: A.cross(B) A.dot(B)
- Any function of matrix or matrices and scalars that returns a matrix or a scalar, such as norm, mean, sum, countNonZero, trace, determinant, repeat, and others.
- Matrix initializers ( Mat::eye(), Mat::zeros(), Mat::ones() ), matrix comma-separated initializers, matrix constructors and operators that extract sub-matrices (see Mat description).
- Mat_<destination_type>() constructors to cast the result to the proper type.
0 0
- opencv的类型和方法在不同语言中的对应关系
- opencv的类型和方法在不同语言中的对应关系
- C#中的类型和SQL Server中的类型对应关系
- 不同语言和操作系统对应的薪水
- VC编程中常用数据类型和函数在不同编码格式下的对应关系
- opencv中的数据类型以及与vc++中 的对应关系
- VSS和SVN的功能对应关系与不同
- OpenCV中不同深度的元素在C++中的保存类型
- 【OpenCV】Mat中的depth与对应的内置类型
- POI 中的CellType类型以及值的对应关系
- opencv中hog特征向量和块特征的对应关系
- 数据库类型和java类型对应关系
- Unity3D在不同父子关系里获取方法的不同
- 数据库字段和java类型的对应关系
- sql 数据类型和 .net/C#的类型对应关系
- 数据库字段类型和java的对应关系
- 不同开发语言和操作系统对应的薪水
- 不同编程语言和操作系统对应的薪水 zt
- Mac下Maven的使用
- Cadence Allegro学习之交互式布局与飞线处理
- 使用Axis2方式发布webService的三种方式
- mpu6050 报错fifo overflow解决办法
- rabbitmq 在springboot框架中添加多个exchange的方法
- opencv的类型和方法在不同语言中的对应关系
- c++个人练习
- Django+python做数据库导出excel 和站内搜索 参考
- 工作中遇到问题 & TIPS(持续更新)
- 王小二切饼 (sdut oj)
- Android listview模拟点击事件
- 最短路径-上海交大机试
- 总结做一个PHP项目需要知道哪些问题
- 【Android】Android SurfaceView使用详解