基本结构 核心功能


名称空间

cv::traits

class cv::_InputArray
This is the proxy class for passing read-only input arrays into OpenCV functions. 更多...
class cv::_InputOutputArray
class cv::_OutputArray
This type is very similar to InputArray except that it is used for input/output and output function parameters. 更多...
class cv::Algorithm
This is a base class for all more or less complex algorithms in OpenCV. 更多...
class cv::Complex< _Tp >
A complex number class. 更多...
class cv::DataDepth< _Tp >
A helper class for cv::DataType . 更多...
class cv::DataType< _Tp >
Template "trait" class for OpenCV primitive data types. 更多...
class cv::DMatch
Class for matching keypoint descriptors. 更多...
class cv::Formatted
class cv::Formatter
class cv::KeyPoint
Data structure for salient point detectors. 更多...
class cv::Mat
n-dimensional dense array class 更多...
class cv::Mat_< _Tp >
Template matrix class derived from Mat . 更多...
class cv::MatAllocator
Custom array allocator. 更多...
class cv::MatCommaInitializer_< _Tp >
Comma-separated Matrix Initializer. 更多...
class cv::MatConstIterator
class cv::MatConstIterator_< _Tp >
Matrix read-only iterator. 更多...
class cv::MatExpr
Matrix expression representation. 更多...
class cv::MatIterator_< _Tp >
Matrix read-write iterator. 更多...
class cv::MatOp
struct cv::MatSize
struct cv::MatStep
class cv::Matx< _Tp, m, n >
Template class for small matrices whose type and size are known at compilation time. 更多...
class cv::MatxCommaInitializer< _Tp, m, n >
Comma-separated Matrix Initializer. 更多...
class cv::NAryMatIterator
n-ary multi-dimensional array iterator. 更多...
struct cv::ParamType< _Tp, _EnumTp >
struct cv::ParamType< _Tp, typename std::enable_if< std::is_enum< _Tp >::value >::type >
struct cv::ParamType< Algorithm >
struct cv::ParamType< bool >
struct cv::ParamType< double >
struct cv::ParamType< float >
struct cv::ParamType< Mat >
struct cv::ParamType< Scalar >
struct cv::ParamType< std::vector< Mat > >
struct cv::ParamType< String >
struct cv::ParamType< uchar >
struct cv::ParamType< uint64 >
struct cv::ParamType< unsigned >
class cv::Point3_< _Tp >
Template class for 3D points specified by its coordinates x , y and z . 更多...
class cv::Point_< _Tp >
Template class for 2D points specified by its coordinates x and y . 更多...
class cv::Range
Template class specifying a continuous subsequence (slice) of a sequence. 更多...
class cv::Rect_< _Tp >
Template class for 2D rectangles. 更多...
class cv::RotatedRect
The class represents rotated (i.e. not up-right) rectangles on a plane. 更多...
class cv::Scalar_< _Tp >
Template class for a 4-element vector derived from Vec . 更多...
class cv::Size_< _Tp >
Template class for specifying the size of an image or rectangle. 更多...
class cv::SparseMat
The class SparseMat represents multi-dimensional sparse numerical arrays. 更多...
class cv::SparseMat_< _Tp >
Template sparse n-dimensional array class derived from SparseMat . 更多...
class cv::SparseMatConstIterator
Read-Only Sparse Matrix Iterator. 更多...
class cv::SparseMatConstIterator_< _Tp >
Template Read-Only Sparse Matrix Iterator Class. 更多...
class cv::SparseMatIterator
Read-write Sparse Matrix Iterator. 更多...
class cv::SparseMatIterator_< _Tp >
Template Read-Write Sparse Matrix Iterator Class. 更多...
class cv::TermCriteria
The class defining termination criteria for iterative algorithms. 更多...
class cv::UMat
struct cv::UMatData
class cv::Vec< _Tp, cn >
Template class for short numerical vectors, a partial case of Matx . 更多...
class cv::VecCommaInitializer< _Tp, m >
Comma-separated Vec Initializer. 更多...

Typedefs

typedef Complex < double > cv::Complexd
typedef Complex < float > cv::Complexf
typedef const _InputArray & cv::InputArray
typedef InputArray cv::InputArrayOfArrays
typedef const _InputOutputArray & cv::InputOutputArray
typedef InputOutputArray cv::InputOutputArrayOfArrays
typedef Mat_ < uchar > cv::Mat1b
typedef Mat_ < double > cv::Mat1d
typedef Mat_ < float > cv::Mat1f
typedef Mat_ < int > cv::Mat1i
typedef Mat_ < short > cv::Mat1s
typedef Mat_ < ushort > cv::Mat1w
typedef Mat_ < Vec2b > cv::Mat2b
typedef Mat_ < Vec2d > cv::Mat2d
typedef Mat_ < Vec2f > cv::Mat2f
typedef Mat_ < Vec2i > cv::Mat2i
typedef Mat_ < Vec2s > cv::Mat2s
typedef Mat_ < Vec2w > cv::Mat2w
typedef Mat_ < Vec3b > cv::Mat3b
typedef Mat_ < Vec3d > cv::Mat3d
typedef Mat_ < Vec3f > cv::Mat3f
typedef Mat_ < Vec3i > cv::Mat3i
typedef Mat_ < Vec3s > cv::Mat3s
typedef Mat_ < Vec3w > cv::Mat3w
typedef Mat_ < Vec4b > cv::Mat4b
typedef Mat_ < Vec4d > cv::Mat4d
typedef Mat_ < Vec4f > cv::Mat4f
typedef Mat_ < Vec4i > cv::Mat4i
typedef Mat_ < Vec4s > cv::Mat4s
typedef Mat_ < Vec4w > cv::Mat4w
typedef Matx < double, 1, 2 > cv::Matx12d
typedef Matx < float, 1, 2 > cv::Matx12f
typedef Matx < double, 1, 3 > cv::Matx13d
typedef Matx < float, 1, 3 > cv::Matx13f
typedef Matx < double, 1, 4 > cv::Matx14d
typedef Matx < float, 1, 4 > cv::Matx14f
typedef Matx < double, 1, 6 > cv::Matx16d
typedef Matx < float, 1, 6 > cv::Matx16f
typedef Matx < double, 2, 1 > cv::Matx21d
typedef Matx < float, 2, 1 > cv::Matx21f
typedef Matx < double, 2, 2 > cv::Matx22d
typedef Matx < float, 2, 2 > cv::Matx22f
typedef Matx < double, 2, 3 > cv::Matx23d
typedef Matx < float, 2, 3 > cv::Matx23f
typedef Matx < double, 3, 1 > cv::Matx31d
typedef Matx < float, 3, 1 > cv::Matx31f
typedef Matx < double, 3, 2 > cv::Matx32d
typedef Matx < float, 3, 2 > cv::Matx32f
typedef Matx < double, 3, 3 > cv::Matx33d
typedef Matx < float, 3, 3 > cv::Matx33f
typedef Matx < double, 3, 4 > cv::Matx34d
typedef Matx < float, 3, 4 > cv::Matx34f
typedef Matx < double, 4, 1 > cv::Matx41d
typedef Matx < float, 4, 1 > cv::Matx41f
typedef Matx < double, 4, 3 > cv::Matx43d
typedef Matx < float, 4, 3 > cv::Matx43f
typedef Matx < double, 4, 4 > cv::Matx44d
typedef Matx < float, 4, 4 > cv::Matx44f
typedef Matx < double, 6, 1 > cv::Matx61d
typedef Matx < float, 6, 1 > cv::Matx61f
typedef Matx < double, 6, 6 > cv::Matx66d
typedef Matx < float, 6, 6 > cv::Matx66f
typedef const _OutputArray & cv::OutputArray
typedef OutputArray cv::OutputArrayOfArrays
typedef Point2i cv::Point
typedef Point_ < double > cv::Point2d
typedef Point_ < float > cv::Point2f
typedef Point_ < int > cv::Point2i
typedef Point_ < int64 > cv::Point2l
typedef Point3_ < double > cv::Point3d
typedef Point3_ < float > cv::Point3f
typedef Point3_ < int > cv::Point3i
template<typename _Tp >
使用 cv::Ptr = std::shared_ptr< _Tp >
typedef Rect2i cv::Rect
typedef Rect_ < double > cv::Rect2d
typedef Rect_ < float > cv::Rect2f
typedef Rect_ < int > cv::Rect2i
typedef Scalar_ < double > cv::Scalar
typedef Size2i cv::Size
typedef Size_ < double > cv::Size2d
typedef Size_ < float > cv::Size2f
typedef Size_ < int > cv::Size2i
typedef Size_ < int64 > cv::Size2l
typedef std::string cv::String

枚举

enum cv::AccessFlag {
cv::ACCESS_READ =1<<24,
cv::ACCESS_WRITE =1<<25,
cv::ACCESS_RW =3<<24,
cv::ACCESS_MASK =ACCESS_RW,
cv::ACCESS_FAST =1<<26
}
enum cv::Param {
cv::Param::INT =0,
cv::Param::BOOLEAN =1,
cv::Param::REAL =2,
cv::Param::STRING =3,
cv::Param::MAT =4,
cv::Param::MAT_VECTOR =5,
cv::Param::ALGORITHM =6,
cv::Param::FLOAT =7,
cv::Param::UNSIGNED_INT =8,
cv::Param::UINT64 =9,
cv::Param::UCHAR =11,
cv::Param::SCALAR =12
}
enum cv::UMatUsageFlags {
cv::USAGE_DEFAULT = 0,
cv::USAGE_ALLOCATE_HOST_MEMORY = 1 << 0,
cv::USAGE_ALLOCATE_DEVICE_MEMORY = 1 << 1,
cv::USAGE_ALLOCATE_SHARED_MEMORY = 1 << 2,
cv::__UMAT_USAGE_FLAGS_32BIT = 0x7fffffff
}
Usage flags for allocator. 更多...

函数

template<typename _Tp , int m>
static double cv::determinant (const Matx < _Tp, m, m > &a)
template<typename _Tp , typename ... A1>
static Ptr < _Tp > cv::makePtr (const A1 &... a1)
InputOutputArray cv::noArray ()
template<typename _Tp , int m, int n>
static double cv::norm (const Matx < _Tp, m, n > &M)
template<typename _Tp , int m, int n>
static double cv::norm (const Matx < _Tp, m, n > &M, int normType)
template<typename _Tp , int cn>
static Vec < _Tp, cn > cv::normalize (const Vec < _Tp, cn > &v)
static 字符串 & cv::operator<< ( 字符串 &out, Ptr < Formatted > fmtd)
static 字符串 & cv::operator<< ( 字符串 &out, const Mat &mtx)
template<typename _Tp >
static _InputArray cv::rawIn (_Tp &v)
template<typename _Tp >
static _InputOutputArray cv::rawInOut (_Tp &v)
template<typename _Tp >
static _OutputArray cv::rawOut (_Tp &v)
static std::string cv::toLowerCase (const std::string &str)
static std::string cv::toUpperCase (const std::string &str)
template<typename _Tp , int m, int n>
static double cv::trace (const Matx < _Tp, m, n > &a)

Shorter aliases for the most popular specializations of Vec<T,n>

typedef Vec < uchar , 2 > cv::Vec2b
typedef Vec < uchar , 3 > cv::Vec3b
typedef Vec < uchar , 4 > cv::Vec4b
typedef Vec < short, 2 > cv::Vec2s
typedef Vec < short, 3 > cv::Vec3s
typedef Vec < short, 4 > cv::Vec4s
typedef Vec < ushort , 2 > cv::Vec2w
typedef Vec < ushort , 3 > cv::Vec3w
typedef Vec < ushort , 4 > cv::Vec4w
typedef Vec < int, 2 > cv::Vec2i
typedef Vec < int, 3 > cv::Vec3i
typedef Vec < int, 4 > cv::Vec4i
typedef Vec < int, 6 > cv::Vec6i
typedef Vec < int, 8 > cv::Vec8i
typedef Vec < float, 2 > cv::Vec2f
typedef Vec < float, 3 > cv::Vec3f
typedef Vec < float, 4 > cv::Vec4f
typedef Vec < float, 6 > cv::Vec6f
typedef Vec < double, 2 > cv::Vec2d
typedef Vec < double, 3 > cv::Vec3d
typedef Vec < double, 4 > cv::Vec4d
typedef Vec < double, 6 > cv::Vec6d

详细描述

Typedef 文档编制

Complexd

Complexf

InputArray

InputArrayOfArrays

InputOutputArray

InputOutputArrayOfArrays

Mat1b

Mat1d

typedef Mat_ <double> cv::Mat1d

Mat1f

typedef Mat_ <float> cv::Mat1f

Mat1i

Mat1s

typedef Mat_ <short> cv::Mat1s

Mat1w

Mat2b

Mat2d

Mat2f

Mat2i

Mat2s

Mat2w

Mat3b

Mat3d

Mat3f

Mat3i

Mat3s

Mat3w

Mat4b

Mat4d

Mat4f

Mat4i

Mat4s

Mat4w

Matx12d

typedef Matx <double, 1, 2> cv::Matx12d

Matx12f

typedef Matx <float, 1, 2> cv::Matx12f

Matx13d

typedef Matx <double, 1, 3> cv::Matx13d

Matx13f

typedef Matx <float, 1, 3> cv::Matx13f

Matx14d

typedef Matx <double, 1, 4> cv::Matx14d

Matx14f

typedef Matx <float, 1, 4> cv::Matx14f

Matx16d

typedef Matx <double, 1, 6> cv::Matx16d

Matx16f

typedef Matx <float, 1, 6> cv::Matx16f

Matx21d

typedef Matx <double, 2, 1> cv::Matx21d

Matx21f

typedef Matx <float, 2, 1> cv::Matx21f

Matx22d

typedef Matx <double, 2, 2> cv::Matx22d

Matx22f

typedef Matx <float, 2, 2> cv::Matx22f

Matx23d

typedef Matx <double, 2, 3> cv::Matx23d

Matx23f

typedef Matx <float, 2, 3> cv::Matx23f

Matx31d

typedef Matx <double, 3, 1> cv::Matx31d

Matx31f

typedef Matx <float, 3, 1> cv::Matx31f

Matx32d

typedef Matx <double, 3, 2> cv::Matx32d

Matx32f

typedef Matx <float, 3, 2> cv::Matx32f

Matx33d

typedef Matx <double, 3, 3> cv::Matx33d

Matx33f

typedef Matx <float, 3, 3> cv::Matx33f

Matx34d

typedef Matx <double, 3, 4> cv::Matx34d

Matx34f

typedef Matx <float, 3, 4> cv::Matx34f

Matx41d

typedef Matx <double, 4, 1> cv::Matx41d

Matx41f

typedef Matx <float, 4, 1> cv::Matx41f

Matx43d

typedef Matx <double, 4, 3> cv::Matx43d

Matx43f

typedef Matx <float, 4, 3> cv::Matx43f

Matx44d

typedef Matx <double, 4, 4> cv::Matx44d

Matx44f

typedef Matx <float, 4, 4> cv::Matx44f

Matx61d

typedef Matx <double, 6, 1> cv::Matx61d

Matx61f

typedef Matx <float, 6, 1> cv::Matx61f

Matx66d

typedef Matx <double, 6, 6> cv::Matx66d

Matx66f

typedef Matx <float, 6, 6> cv::Matx66f

OutputArray

OutputArrayOfArrays

Point

Point2d

Point2f

Point2i

Point2l

Point3d

Point3f

Point3i

Ptr

template<typename _Tp >
使用 cv::Ptr = typedef std::shared_ptr<_Tp>

Rect

Rect2d

Rect2f

Rect2i

Scalar

Size

Size2d

Size2f

Size2i

Size2l

字符串

Vec2b

Vec2d

typedef Vec <double, 2> cv::Vec2d

Vec2f

typedef Vec <float, 2> cv::Vec2f

Vec2i

typedef Vec <int, 2> cv::Vec2i

Vec2s

typedef Vec <short, 2> cv::Vec2s

Vec2w

Vec3b

Vec3d

typedef Vec <double, 3> cv::Vec3d

Vec3f

typedef Vec <float, 3> cv::Vec3f

Vec3i

typedef Vec <int, 3> cv::Vec3i

Vec3s

typedef Vec <short, 3> cv::Vec3s

Vec3w

Vec4b

Vec4d

typedef Vec <double, 4> cv::Vec4d

Vec4f

typedef Vec <float, 4> cv::Vec4f

Vec4i

typedef Vec <int, 4> cv::Vec4i

Vec4s

typedef Vec <short, 4> cv::Vec4s

Vec4w

Vec6d

typedef Vec <double, 6> cv::Vec6d

Vec6f

typedef Vec <float, 6> cv::Vec6f

Vec6i

typedef Vec <int, 6> cv::Vec6i

Vec8i

typedef Vec <int, 8> cv::Vec8i

枚举类型文档编制

AccessFlag

#include < opencv2/core/mat.hpp >

枚举器
ACCESS_READ
Python: cv.ACCESS_READ
ACCESS_WRITE
Python: cv.ACCESS_WRITE
ACCESS_RW
Python: cv.ACCESS_RW
ACCESS_MASK
Python: cv.ACCESS_MASK
ACCESS_FAST
Python: cv.ACCESS_FAST

Param

enum cv::Param
strong

#include < opencv2/core.hpp >

枚举器
INT
BOOLEAN
REAL
STRING
MAT
MAT_VECTOR
ALGORITHM
FLOAT
UNSIGNED_INT
UINT64
UCHAR
SCALAR

UMatUsageFlags

#include < opencv2/core/mat.hpp >

Usage flags for allocator.

枚举器
USAGE_DEFAULT
Python: cv.USAGE_DEFAULT
USAGE_ALLOCATE_HOST_MEMORY
Python: cv.USAGE_ALLOCATE_HOST_MEMORY
USAGE_ALLOCATE_DEVICE_MEMORY
Python: cv.USAGE_ALLOCATE_DEVICE_MEMORY
USAGE_ALLOCATE_SHARED_MEMORY
Python: cv.USAGE_ALLOCATE_SHARED_MEMORY
__UMAT_USAGE_FLAGS_32BIT
Python: cv.__UMAT_USAGE_FLAGS_32BIT

函数文档编制

determinant()

template<typename _Tp , int m>
static double cv::determinant ( const Matx < _Tp, m, m > & a )
static
Python:
retval = cv.determinant( mtx )

makePtr()

template<typename _Tp , typename ... A1>
static Ptr <_Tp> cv::makePtr ( const A1 &... a1 )
inline static

noArray()

InputOutputArray cv::noArray ( )

norm() [1/2]

template<typename _Tp , int m, int n>
static double cv::norm ( const Matx < _Tp, m, n > & M )
static
Python:
retval = cv.norm( src1[, normType[, mask]] )
retval = cv.norm( src1, src2[, normType[, mask]] )

norm() [2/2]

template<typename _Tp , int m, int n>
static double cv::norm ( const Matx < _Tp, m, n > & M ,
int normType
)
static
Python:
retval = cv.norm( src1[, normType[, mask]] )
retval = cv.norm( src1, src2[, normType[, mask]] )

normalize()

template<typename _Tp , int cn>
static Vec <_Tp, cn> cv::normalize ( const Vec < _Tp, cn > & v )
static
Python:
dst = cv.normalize( src, dst[, alpha[, beta[, norm_type[, dtype[, mask]]]]] )

operator<<() [1/2]

static 字符串 & cv::operator<< ( 字符串 & out ,
Ptr < Formatted > fmtd
)
inline static

#include < opencv2/core.hpp >

operator<<() [2/2]

static 字符串 & cv::operator<< ( 字符串 & out ,
const Mat & mtx
)
inline static

#include < opencv2/core.hpp >

rawIn()

template<typename _Tp >
static _InputArray cv::rawIn ( _Tp & v )
inline static

#include < opencv2/core/mat.hpp >

Helper to wrap custom types.

另请参阅
InputArray

rawInOut()

template<typename _Tp >
static _InputOutputArray cv::rawInOut ( _Tp & v )
inline static

#include < opencv2/core/mat.hpp >

Helper to wrap custom types.

另请参阅
InputArray

rawOut()

template<typename _Tp >
static _OutputArray cv::rawOut ( _Tp & v )
inline static

#include < opencv2/core/mat.hpp >

Helper to wrap custom types.

另请参阅
InputArray

toLowerCase()

static std::string cv::toLowerCase ( const std::string & str )
inline static

toUpperCase()

static std::string cv::toUpperCase ( const std::string & str )
inline static

trace()

template<typename _Tp , int m, int n>
static double cv::trace ( const Matx < _Tp, m, n > & a )
static
Python:
retval = cv.trace( mtx )