types_c.h File Reference

#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <stdint.h>
#include <math.h>
Include dependency graph for core/types_c.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _IplConvKernel
struct  _IplConvKernelFP
struct  _IplImage
struct  _IplROI
union  Cv32suf
union  Cv64suf
struct  CvAttrList
struct  CvBox2D
struct  CvChain
struct  CvContour
struct  CvFileNode
struct  CvGraph
struct  CvGraphEdge
struct  CvGraphVtx
struct  CvGraphVtx2D
struct  CvHistogram
struct  CvLineIterator
struct  CvMat
struct  CvMatND
struct  CvMemBlock
struct  CvMemStorage
struct  CvMemStoragePos
struct  CvModuleInfo
struct  CvPluginFuncInfo
struct  CvPoint
struct  CvPoint2D32f
struct  CvPoint2D64f
struct  CvPoint3D32f
struct  CvPoint3D64f
struct  CvRect
struct  CvScalar
struct  CvSeq
struct  CvSeqBlock
struct  CvSeqReader
struct  CvSeqWriter
struct  CvSet
struct  CvSetElem
struct  CvSize
struct  CvSize2D32f
struct  CvSlice
struct  CvSparseMat
struct  CvSparseMatIterator
struct  CvSparseNode
struct  CvString
struct  CvStringHashNode
struct  CvTermCriteria
struct  CvTypeInfo

Defines

#define CV_16S   3
#define CV_16SC(n)   CV_MAKETYPE(CV_16S,(n))
#define CV_16SC1   CV_MAKETYPE(CV_16S,1)
#define CV_16SC2   CV_MAKETYPE(CV_16S,2)
#define CV_16SC3   CV_MAKETYPE(CV_16S,3)
#define CV_16SC4   CV_MAKETYPE(CV_16S,4)
#define CV_16U   2
#define CV_16UC(n)   CV_MAKETYPE(CV_16U,(n))
#define CV_16UC1   CV_MAKETYPE(CV_16U,1)
#define CV_16UC2   CV_MAKETYPE(CV_16U,2)
#define CV_16UC3   CV_MAKETYPE(CV_16U,3)
#define CV_16UC4   CV_MAKETYPE(CV_16U,4)
#define CV_32F   5
#define CV_32FC(n)   CV_MAKETYPE(CV_32F,(n))
#define CV_32FC1   CV_MAKETYPE(CV_32F,1)
#define CV_32FC2   CV_MAKETYPE(CV_32F,2)
#define CV_32FC3   CV_MAKETYPE(CV_32F,3)
#define CV_32FC4   CV_MAKETYPE(CV_32F,4)
#define CV_32S   4
#define CV_32SC(n)   CV_MAKETYPE(CV_32S,(n))
#define CV_32SC1   CV_MAKETYPE(CV_32S,1)
#define CV_32SC2   CV_MAKETYPE(CV_32S,2)
#define CV_32SC3   CV_MAKETYPE(CV_32S,3)
#define CV_32SC4   CV_MAKETYPE(CV_32S,4)
#define CV_64F   6
#define CV_64FC(n)   CV_MAKETYPE(CV_64F,(n))
#define CV_64FC1   CV_MAKETYPE(CV_64F,1)
#define CV_64FC2   CV_MAKETYPE(CV_64F,2)
#define CV_64FC3   CV_MAKETYPE(CV_64F,3)
#define CV_64FC4   CV_MAKETYPE(CV_64F,4)
#define CV_8S   1
#define CV_8SC(n)   CV_MAKETYPE(CV_8S,(n))
#define CV_8SC1   CV_MAKETYPE(CV_8S,1)
#define CV_8SC2   CV_MAKETYPE(CV_8S,2)
#define CV_8SC3   CV_MAKETYPE(CV_8S,3)
#define CV_8SC4   CV_MAKETYPE(CV_8S,4)
#define CV_8U   0
#define CV_8UC(n)   CV_MAKETYPE(CV_8U,(n))
#define CV_8UC1   CV_MAKETYPE(CV_8U,1)
#define CV_8UC2   CV_MAKETYPE(CV_8U,2)
#define CV_8UC3   CV_MAKETYPE(CV_8U,3)
#define CV_8UC4   CV_MAKETYPE(CV_8U,4)
#define CV_ARE_CNS_EQ(mat1, mat2)   ((((mat1)->type ^ (mat2)->type) & CV_MAT_CN_MASK) == 0)
#define CV_ARE_DEPTHS_EQ(mat1, mat2)   ((((mat1)->type ^ (mat2)->type) & CV_MAT_DEPTH_MASK) == 0)
#define CV_ARE_SIZES_EQ(mat1, mat2)   ((mat1)->rows == (mat2)->rows && (mat1)->cols == (mat2)->cols)
#define CV_ARE_TYPES_EQ(mat1, mat2)   ((((mat1)->type ^ (mat2)->type) & CV_MAT_TYPE_MASK) == 0)
#define CV_AUTO_STEP   0x7fffffff
#define CV_CARRAY(counter)
#define CV_CDECL
#define CV_CMP(a, b)   (((a) > (b)) - ((a) < (b)))
#define CV_CN_MAX   512
#define CV_CN_SHIFT   3
#define CV_CONTOUR_FIELDS()
#define CV_CURRENT_POINT(reader)   (*((CvPoint*)((reader).ptr)))
#define CV_CUSTOM_CARRAY(args)
#define CV_DEFAULT(val)
#define CV_DEPTH_MAX   (1 << CV_CN_SHIFT)
#define CV_ELEM_SIZE(type)   (CV_MAT_CN(type) << ((((sizeof(size_t)/4+1)*16384|0x3a50) >> CV_MAT_DEPTH(type)*2) & 3))
#define CV_ELEM_SIZE1(type)   ((((sizeof(size_t)<<28)|0x8442211) >> CV_MAT_DEPTH(type)*4) & 15)
#define CV_EXPORTS
#define CV_EXPORTS_AS(synonym)   CV_EXPORTS
#define CV_EXPORTS_W   CV_EXPORTS
#define CV_EXPORTS_W_MAP   CV_EXPORTS
#define CV_EXPORTS_W_SIMPLE   CV_EXPORTS
#define CV_EXTERN_C
#define CV_EXTERN_C_FUNCPTR(x)   typedef x
#define CV_GET_SEQ_ELEM(elem_type, seq, index)   CV_SEQ_ELEM( (seq), elem_type, (index) )
#define CV_GRAPH   CV_SEQ_KIND_GRAPH
#define CV_GRAPH_EDGE_FIELDS()
#define CV_GRAPH_FIELDS()
#define CV_GRAPH_FLAG_ORIENTED   (1 << CV_SEQ_FLAG_SHIFT)
#define CV_GRAPH_VERTEX_FIELDS()
#define CV_HIST_ARRAY   0
#define CV_HIST_HAS_RANGES(hist)   (((hist)->type & CV_HIST_RANGES_FLAG) != 0)
#define CV_HIST_MAGIC_VAL   0x42450000
#define CV_HIST_RANGES_FLAG   (1 << 11)
#define CV_HIST_SPARSE   1
#define CV_HIST_TREE   CV_HIST_SPARSE
#define CV_HIST_UNIFORM   1
#define CV_HIST_UNIFORM_FLAG   (1 << 10)
#define CV_IABS(a)   (((a) ^ ((a) < 0 ? -1 : 0)) - ((a) < 0 ? -1 : 0))
#define CV_IMAGE_ELEM(image, elemtype, row, col)   (((elemtype*)((image)->imageData + (image)->widthStep*(row)))[(col)])
#define CV_IMAX(a, b)   ((a) ^ (((a)^(b)) & (((a) > (b)) - 1)))
#define CV_IMIN(a, b)   ((a) ^ (((a)^(b)) & (((a) < (b)) - 1)))
#define CV_IN_OUT
#define CV_INLINE   static
#define CV_IS_CONT_MAT   CV_IS_MAT_CONT
#define CV_IS_GRAPH(seq)   (CV_IS_SET(seq) && CV_SEQ_KIND((CvSet*)(seq)) == CV_SEQ_KIND_GRAPH)
#define CV_IS_GRAPH_ORIENTED(seq)   (((seq)->flags & CV_GRAPH_FLAG_ORIENTED) != 0)
#define CV_IS_HIST(hist)
#define CV_IS_IMAGE(img)   (CV_IS_IMAGE_HDR(img) && ((IplImage*)img)->imageData != NULL)
#define CV_IS_IMAGE_HDR(img)   ((img) != NULL && ((const IplImage*)(img))->nSize == sizeof(IplImage))
#define CV_IS_MASK_ARR(mat)   (((mat)->type & (CV_MAT_TYPE_MASK & ~CV_8SC1)) == 0)
#define CV_IS_MAT(mat)   (CV_IS_MAT_HDR(mat) && ((const CvMat*)(mat))->data.ptr != NULL)
#define CV_IS_MAT_CONST(mat)   (((mat)->rows|(mat)->cols) == 1)
#define CV_IS_MAT_CONT(flags)   ((flags) & CV_MAT_CONT_FLAG)
#define CV_IS_MAT_HDR(mat)
#define CV_IS_MAT_HDR_Z(mat)
#define CV_IS_MATND(mat)   (CV_IS_MATND_HDR(mat) && ((const CvMatND*)(mat))->data.ptr != NULL)
#define CV_IS_MATND_HDR(mat)   ((mat) != NULL && (((const CvMatND*)(mat))->type & CV_MAGIC_MASK) == CV_MATND_MAGIC_VAL)
#define CV_IS_SEQ(seq)   ((seq) != NULL && (((CvSeq*)(seq))->flags & CV_MAGIC_MASK) == CV_SEQ_MAGIC_VAL)
#define CV_IS_SEQ_CHAIN(seq)   (CV_SEQ_KIND(seq) == CV_SEQ_KIND_CURVE && (seq)->elem_size == 1)
#define CV_IS_SEQ_CHAIN_CONTOUR(seq)   (CV_IS_SEQ_CHAIN( seq ) && CV_IS_SEQ_CLOSED( seq ))
#define CV_IS_SEQ_CLOSED(seq)   (((seq)->flags & CV_SEQ_FLAG_CLOSED) != 0)
#define CV_IS_SEQ_CONTOUR(seq)   (CV_IS_SEQ_CLOSED(seq) && (CV_IS_SEQ_POLYLINE(seq) || CV_IS_SEQ_CHAIN(seq)))
#define CV_IS_SEQ_CONVEX(seq)   0
#define CV_IS_SEQ_CURVE(seq)   (CV_SEQ_KIND(seq) == CV_SEQ_KIND_CURVE)
#define CV_IS_SEQ_HOLE(seq)   (((seq)->flags & CV_SEQ_FLAG_HOLE) != 0)
#define CV_IS_SEQ_INDEX(seq)
#define CV_IS_SEQ_POINT_SET(seq)   ((CV_SEQ_ELTYPE(seq) == CV_32SC2 || CV_SEQ_ELTYPE(seq) == CV_32FC2))
#define CV_IS_SEQ_POINT_SUBSET(seq)   (CV_IS_SEQ_INDEX( seq ) || CV_SEQ_ELTYPE(seq) == CV_SEQ_ELTYPE_PPOINT)
#define CV_IS_SEQ_POLYGON(seq)   (CV_IS_SEQ_POLYLINE(seq) && CV_IS_SEQ_CLOSED(seq))
#define CV_IS_SEQ_POLYGON_TREE(seq)
#define CV_IS_SEQ_POLYLINE(seq)   (CV_SEQ_KIND(seq) == CV_SEQ_KIND_CURVE && CV_IS_SEQ_POINT_SET(seq))
#define CV_IS_SEQ_SIMPLE(seq)   1
#define CV_IS_SET(set)   ((set) != NULL && (((CvSeq*)(set))->flags & CV_MAGIC_MASK) == CV_SET_MAGIC_VAL)
#define CV_IS_SET_ELEM(ptr)   (((CvSetElem*)(ptr))->flags >= 0)
#define CV_IS_SPARSE_HIST(hist)   CV_IS_SPARSE_MAT((hist)->bins)
#define CV_IS_SPARSE_MAT(mat)   CV_IS_SPARSE_MAT_HDR(mat)
#define CV_IS_SPARSE_MAT_HDR(mat)
#define CV_IS_STORAGE(storage)
#define CV_IS_SUBDIV2D(seq)   (CV_IS_SET(seq) && CV_SEQ_KIND((CvSet*)(seq)) == CV_SEQ_KIND_SUBDIV2D)
#define CV_IS_SUBMAT(flags)   ((flags) & CV_MAT_SUBMAT_FLAG)
#define CV_IS_UNIFORM_HIST(hist)   (((hist)->type & CV_HIST_UNIFORM_FLAG) != 0)
#define CV_LOG2   0.69314718055994530941723212145818
#define CV_MAGIC_MASK   0xFFFF0000
#define CV_MAKE_TYPE   CV_MAKETYPE
#define CV_MAKETYPE(depth, cn)   (CV_MAT_DEPTH(depth) + (((cn)-1) << CV_CN_SHIFT))
#define CV_MAT_CN(flags)   ((((flags) & CV_MAT_CN_MASK) >> CV_CN_SHIFT) + 1)
#define CV_MAT_CN_MASK   ((CV_CN_MAX - 1) << CV_CN_SHIFT)
#define CV_MAT_CONT_FLAG   (1 << CV_MAT_CONT_FLAG_SHIFT)
#define CV_MAT_CONT_FLAG_SHIFT   14
#define CV_MAT_DEPTH(flags)   ((flags) & CV_MAT_DEPTH_MASK)
#define CV_MAT_DEPTH_MASK   (CV_DEPTH_MAX - 1)
#define CV_MAT_ELEM(mat, elemtype, row, col)   (*(elemtype*)CV_MAT_ELEM_PTR_FAST( mat, row, col, sizeof(elemtype)))
#define CV_MAT_ELEM_PTR(mat, row, col)   CV_MAT_ELEM_PTR_FAST( mat, row, col, CV_ELEM_SIZE((mat).type) )
#define CV_MAT_ELEM_PTR_FAST(mat, row, col, pix_size)
#define CV_MAT_MAGIC_VAL   0x42420000
#define CV_MAT_TYPE(flags)   ((flags) & CV_MAT_TYPE_MASK)
#define CV_MAT_TYPE_MASK   (CV_DEPTH_MAX*CV_CN_MAX - 1)
#define CV_MATND_MAGIC_VAL   0x42430000
#define CV_MAX_DIM   32
#define CV_MAX_DIM_HEAP   (1 << 16)
#define CV_NEXT_GRAPH_EDGE(edge, vertex)
#define CV_NEXT_SEQ_ELEM(elem_size, reader)
#define CV_NODE_EMPTY   32
#define CV_NODE_FLOAT   CV_NODE_REAL
#define CV_NODE_FLOW   8
#define CV_NODE_HAS_NAME(flags)   (((flags) & CV_NODE_NAMED) != 0)
#define CV_NODE_IDX(mat, node)   ((int*)((uchar*)(node) + (mat)->idxoffset))
#define CV_NODE_INT   1
#define CV_NODE_INTEGER   CV_NODE_INT
#define CV_NODE_IS_COLLECTION(flags)   (CV_NODE_TYPE(flags) >= CV_NODE_SEQ)
#define CV_NODE_IS_EMPTY(flags)   (((flags) & CV_NODE_EMPTY) != 0)
#define CV_NODE_IS_FLOW(flags)   (((flags) & CV_NODE_FLOW) != 0)
#define CV_NODE_IS_INT(flags)   (CV_NODE_TYPE(flags) == CV_NODE_INT)
#define CV_NODE_IS_MAP(flags)   (CV_NODE_TYPE(flags) == CV_NODE_MAP)
#define CV_NODE_IS_REAL(flags)   (CV_NODE_TYPE(flags) == CV_NODE_REAL)
#define CV_NODE_IS_SEQ(flags)   (CV_NODE_TYPE(flags) == CV_NODE_SEQ)
#define CV_NODE_IS_STRING(flags)   (CV_NODE_TYPE(flags) == CV_NODE_STRING)
#define CV_NODE_IS_USER(flags)   (((flags) & CV_NODE_USER) != 0)
#define CV_NODE_MAP   6
#define CV_NODE_NAMED   64
#define CV_NODE_NONE   0
#define CV_NODE_REAL   2
#define CV_NODE_REF   4
#define CV_NODE_SEQ   5
#define CV_NODE_SEQ_IS_SIMPLE(seq)   (((seq)->flags & CV_NODE_SEQ_SIMPLE) != 0)
#define CV_NODE_SEQ_SIMPLE   256
#define CV_NODE_STR   3
#define CV_NODE_STRING   CV_NODE_STR
#define CV_NODE_TYPE(flags)   ((flags) & CV_NODE_TYPE_MASK)
#define CV_NODE_TYPE_MASK   7
#define CV_NODE_USER   16
#define CV_NODE_VAL(mat, node)   ((void*)((uchar*)(node) + (mat)->valoffset))
#define CV_ORIENTED_GRAPH   (CV_SEQ_KIND_GRAPH|CV_GRAPH_FLAG_ORIENTED)
#define CV_OUT
#define CV_PI   3.1415926535897932384626433832795
#define CV_PREV_POINT(reader)   (*((CvPoint*)((reader).prev_elem)))
#define CV_PREV_SEQ_ELEM(elem_size, reader)
#define CV_PROP
#define CV_PROP_RW
#define CV_READ_CHAIN_POINT(_pt, reader)
#define CV_READ_EDGE(pt1, pt2, reader)
#define CV_READ_SEQ_ELEM(elem, reader)
#define CV_REV_READ_SEQ_ELEM(elem, reader)
#define CV_RNG_COEFF   4164903690U
#define CV_SEQ_CHAIN   (CV_SEQ_KIND_CURVE | CV_SEQ_ELTYPE_CODE)
#define CV_SEQ_CHAIN_CONTOUR   (CV_SEQ_FLAG_CLOSED | CV_SEQ_CHAIN)
#define CV_SEQ_CONNECTED_COMP   (CV_SEQ_KIND_GENERIC | CV_SEQ_ELTYPE_CONNECTED_COMP)
#define CV_SEQ_CONTOUR   CV_SEQ_POLYGON
#define CV_SEQ_ELEM(seq, elem_type, index)
#define CV_SEQ_ELTYPE(seq)   ((seq)->flags & CV_SEQ_ELTYPE_MASK)
#define CV_SEQ_ELTYPE_BITS   12
#define CV_SEQ_ELTYPE_CODE   CV_8UC1
#define CV_SEQ_ELTYPE_CONNECTED_COMP   0
#define CV_SEQ_ELTYPE_GENERIC   0
#define CV_SEQ_ELTYPE_GRAPH_EDGE   0
#define CV_SEQ_ELTYPE_GRAPH_VERTEX   0
#define CV_SEQ_ELTYPE_INDEX   CV_32SC1
#define CV_SEQ_ELTYPE_MASK   ((1 << CV_SEQ_ELTYPE_BITS) - 1)
#define CV_SEQ_ELTYPE_POINT   CV_32SC2
#define CV_SEQ_ELTYPE_POINT3D   CV_32FC3
#define CV_SEQ_ELTYPE_PPOINT   CV_SEQ_ELTYPE_PTR
#define CV_SEQ_ELTYPE_PTR   CV_USRTYPE1
#define CV_SEQ_ELTYPE_TRIAN_ATR   0
#define CV_SEQ_FLAG_CLOSED   (1 << CV_SEQ_FLAG_SHIFT)
#define CV_SEQ_FLAG_CONVEX   (0 << CV_SEQ_FLAG_SHIFT)
#define CV_SEQ_FLAG_HOLE   (2 << CV_SEQ_FLAG_SHIFT)
#define CV_SEQ_FLAG_SHIFT   (CV_SEQ_KIND_BITS + CV_SEQ_ELTYPE_BITS)
#define CV_SEQ_FLAG_SIMPLE   (0 << CV_SEQ_FLAG_SHIFT)
#define CV_SEQ_INDEX   (CV_SEQ_KIND_GENERIC | CV_SEQ_ELTYPE_INDEX)
#define CV_SEQ_KIND(seq)   ((seq)->flags & CV_SEQ_KIND_MASK )
#define CV_SEQ_KIND_BIN_TREE   (2 << CV_SEQ_ELTYPE_BITS)
#define CV_SEQ_KIND_BITS   2
#define CV_SEQ_KIND_CURVE   (1 << CV_SEQ_ELTYPE_BITS)
#define CV_SEQ_KIND_GENERIC   (0 << CV_SEQ_ELTYPE_BITS)
#define CV_SEQ_KIND_GRAPH   (1 << CV_SEQ_ELTYPE_BITS)
#define CV_SEQ_KIND_MASK   (((1 << CV_SEQ_KIND_BITS) - 1)<<CV_SEQ_ELTYPE_BITS)
#define CV_SEQ_KIND_SUBDIV2D   (2 << CV_SEQ_ELTYPE_BITS)
#define CV_SEQ_MAGIC_VAL   0x42990000
#define CV_SEQ_POINT3D_SET   (CV_SEQ_KIND_GENERIC| CV_SEQ_ELTYPE_POINT3D)
#define CV_SEQ_POINT_SET   (CV_SEQ_KIND_GENERIC| CV_SEQ_ELTYPE_POINT)
#define CV_SEQ_POLYGON   (CV_SEQ_FLAG_CLOSED | CV_SEQ_POLYLINE )
#define CV_SEQ_POLYGON_TREE   (CV_SEQ_KIND_BIN_TREE | CV_SEQ_ELTYPE_TRIAN_ATR)
#define CV_SEQ_POLYLINE   (CV_SEQ_KIND_CURVE | CV_SEQ_ELTYPE_POINT)
#define CV_SEQ_READER_FIELDS()
#define CV_SEQ_SIMPLE_POLYGON   (CV_SEQ_FLAG_SIMPLE | CV_SEQ_POLYGON )
#define CV_SEQ_WRITER_FIELDS()
#define CV_SEQUENCE_FIELDS()
#define CV_SET_ELEM_FIELDS(elem_type)
#define CV_SET_ELEM_FREE_FLAG   (1 << (sizeof(int)*8-1))
#define CV_SET_ELEM_IDX_MASK   ((1 << 26) - 1)
#define CV_SET_FIELDS()
#define CV_SET_MAGIC_VAL   0x42980000
#define CV_SIGN(a)   CV_CMP((a),0)
#define CV_SPARSE_MAT_MAGIC_VAL   0x42440000
#define CV_STDCALL
#define CV_STORAGE_APPEND   2
#define CV_STORAGE_MAGIC_VAL   0x42890000
#define CV_STORAGE_READ   0
#define CV_STORAGE_WRITE   1
#define CV_STORAGE_WRITE_BINARY   CV_STORAGE_WRITE
#define CV_STORAGE_WRITE_TEXT   CV_STORAGE_WRITE
#define CV_SUBMAT_FLAG   (1 << CV_SUBMAT_FLAG_SHIFT)
#define CV_SUBMAT_FLAG_SHIFT   15
#define CV_SWAP(a, b, t)   ((t) = (a), (a) = (b), (b) = (t))
#define CV_TERMCRIT_EPS   2
#define CV_TERMCRIT_ITER   1
#define CV_TERMCRIT_NUMBER   CV_TERMCRIT_ITER
#define CV_TREE_NODE_FIELDS(node_type)
#define CV_TYPE_NAME_GRAPH   "opencv-graph"
#define CV_TYPE_NAME_IMAGE   "opencv-image"
#define CV_TYPE_NAME_MAT   "opencv-matrix"
#define CV_TYPE_NAME_MATND   "opencv-nd-matrix"
#define CV_TYPE_NAME_SEQ   "opencv-sequence"
#define CV_TYPE_NAME_SEQ_TREE   "opencv-sequence-tree"
#define CV_TYPE_NAME_SPARSE_MAT   "opencv-sparse-matrix"
#define CV_USRTYPE1   7
#define CV_WHOLE_ARR   cvSlice( 0, 0x3fffffff )
#define CV_WHOLE_SEQ   cvSlice(0, CV_WHOLE_SEQ_END_INDEX)
#define CV_WHOLE_SEQ_END_INDEX   0x3fffffff
#define CV_WRAP
#define CV_WRAP_AS(synonym)
#define CV_WRAP_DEFAULT(value)
#define CV_WRITE_SEQ_ELEM(elem, writer)
#define CV_WRITE_SEQ_ELEM_VAR(elem_ptr, writer)
#define CVAPI(rettype)   CV_EXTERN_C CV_EXPORTS rettype CV_CDECL
#define cvInvSqrt(value)   ((float)(1./sqrt(value)))
#define cvSqrt(value)   ((float)sqrt(value))
#define IPL2CV_DEPTH(depth)
#define IPL_ALIGN_16BYTES   16
#define IPL_ALIGN_32BYTES   32
#define IPL_ALIGN_4BYTES   4
#define IPL_ALIGN_8BYTES   8
#define IPL_ALIGN_DWORD   IPL_ALIGN_4BYTES
#define IPL_ALIGN_QWORD   IPL_ALIGN_8BYTES
#define IPL_BORDER_CONSTANT   0
#define IPL_BORDER_REFLECT   2
#define IPL_BORDER_REFLECT_101   4
#define IPL_BORDER_REPLICATE   1
#define IPL_BORDER_TRANSPARENT   5
#define IPL_BORDER_WRAP   3
#define IPL_DATA_ORDER_PIXEL   0
#define IPL_DATA_ORDER_PLANE   1
#define IPL_DEPTH_16S   (IPL_DEPTH_SIGN|16)
#define IPL_DEPTH_16U   16
#define IPL_DEPTH_1U   1
#define IPL_DEPTH_32F   32
#define IPL_DEPTH_32S   (IPL_DEPTH_SIGN|32)
#define IPL_DEPTH_64F   64
#define IPL_DEPTH_8S   (IPL_DEPTH_SIGN| 8)
#define IPL_DEPTH_8U   8
#define IPL_DEPTH_SIGN   0x80000000
#define IPL_IMAGE_DATA   2
#define IPL_IMAGE_HEADER   1
#define IPL_IMAGE_MAGIC_VAL   ((int)sizeof(IplImage))
#define IPL_IMAGE_ROI   4
#define IPL_ORIGIN_BL   1
#define IPL_ORIGIN_TL   0
#define MAX(a, b)   ((a) < (b) ? (b) : (a))
#define MIN(a, b)   ((a) > (b) ? (b) : (a))

Typedefs

typedef union Cv32suf Cv32suf
typedef union Cv64suf Cv64suf
typedef void CvArr
typedef struct CvAttrList CvAttrList
typedef struct CvBox2D CvBox2D
typedef struct CvChain CvChain
typedef void *(CV_CDECL * CvCloneFunc )(const void *struct_ptr)
typedef struct CvContour CvContour
typedef struct CvFileNode CvFileNode
typedef struct CvGenericHash CvFileNodeHash
typedef struct CvFileStorage CvFileStorage
typedef struct CvGraph CvGraph
typedef struct CvGraphEdge CvGraphEdge
typedef struct CvGraphVtx CvGraphVtx
typedef struct CvGraphVtx2D CvGraphVtx2D
typedef struct CvHistogram CvHistogram
typedef int CvHistType
typedef int(CV_CDECL * CvIsInstanceFunc )(const void *struct_ptr)
typedef struct CvLineIterator CvLineIterator
typedef struct CvMat CvMat
typedef struct CvMatND CvMatND
typedef struct CvMemBlock CvMemBlock
typedef struct CvMemStorage CvMemStorage
typedef struct CvMemStoragePos CvMemStoragePos
typedef struct CvModuleInfo CvModuleInfo
typedef struct CvPluginFuncInfo CvPluginFuncInfo
typedef struct CvPoint CvPoint
typedef struct CvPoint2D32f CvPoint2D32f
typedef struct CvPoint2D64f CvPoint2D64f
typedef CvContour CvPoint2DSeq
typedef struct CvPoint3D32f CvPoint3D32f
typedef struct CvPoint3D64f CvPoint3D64f
typedef void *(CV_CDECL * CvReadFunc )(CvFileStorage *storage, CvFileNode *node)
typedef struct CvRect CvRect
typedef void(CV_CDECL * CvReleaseFunc )(void **struct_dblptr)
typedef uint64 CvRNG
typedef struct CvScalar CvScalar
typedef struct CvSeq CvSeq
typedef struct CvSeqBlock CvSeqBlock
typedef struct CvSeqReader CvSeqReader
typedef struct CvSeqWriter CvSeqWriter
typedef struct CvSet CvSet
typedef struct CvSetElem CvSetElem
typedef struct CvSize2D32f CvSize2D32f
typedef struct CvSlice CvSlice
typedef struct CvSparseMat CvSparseMat
typedef struct CvSparseMatIterator CvSparseMatIterator
typedef struct CvSparseNode CvSparseNode
typedef int CVStatus
typedef struct CvString CvString
typedef struct CvStringHashNode CvStringHashNode
typedef struct CvTermCriteria CvTermCriteria
typedef struct CvTypeInfo CvTypeInfo
typedef void(CV_CDECL * CvWriteFunc )(CvFileStorage *storage, const char *name, const void *struct_ptr, CvAttrList attributes)
typedef int64_t int64
typedef struct _IplConvKernel IplConvKernel
typedef struct _IplConvKernelFP IplConvKernelFP
typedef struct _IplImage IplImage
typedef struct _IplROI IplROI
typedef struct _IplTileInfo IplTileInfo
typedef signed char schar
typedef unsigned char uchar
typedef uint64_t uint64
typedef unsigned short ushort

Enumerations

enum  {
  CV_StsOk = 0, CV_StsBackTrace = -1, CV_StsError = -2, CV_StsInternal = -3,
  CV_StsNoMem = -4, CV_StsBadArg = -5, CV_StsBadFunc = -6, CV_StsNoConv = -7,
  CV_StsAutoTrace = -8, CV_HeaderIsNull = -9, CV_BadImageSize = -10, CV_BadOffset = -11,
  CV_BadDataPtr = -12, CV_BadStep = -13, CV_BadModelOrChSeq = -14, CV_BadNumChannels = -15,
  CV_BadNumChannel1U = -16, CV_BadDepth = -17, CV_BadAlphaChannel = -18, CV_BadOrder = -19,
  CV_BadOrigin = -20, CV_BadAlign = -21, CV_BadCallBack = -22, CV_BadTileSize = -23,
  CV_BadCOI = -24, CV_BadROISize = -25, CV_MaskIsTiled = -26, CV_StsNullPtr = -27,
  CV_StsVecLengthErr = -28, CV_StsFilterStructContentErr = -29, CV_StsKernelStructContentErr = -30, CV_StsFilterOffsetErr = -31,
  CV_StsBadSize = -201, CV_StsDivByZero = -202, CV_StsInplaceNotSupported = -203, CV_StsObjectNotFound = -204,
  CV_StsUnmatchedFormats = -205, CV_StsBadFlag = -206, CV_StsBadPoint = -207, CV_StsBadMask = -208,
  CV_StsUnmatchedSizes = -209, CV_StsUnsupportedFormat = -210, CV_StsOutOfRange = -211, CV_StsParseError = -212,
  CV_StsNotImplemented = -213, CV_StsBadMemBlock = -214, CV_StsAssert = -215, CV_GpuNotSupported = -216,
  CV_GpuApiCallError = -217, CV_GpuNppCallError = -218
}

Functions

CV_INLINE CvAttrList cvAttrList (const char **attr CV_DEFAULT(NULL), CvAttrList *next CV_DEFAULT(NULL))
CV_INLINE int cvCeil (double value)
CV_INLINE int cvFloor (double value)
CV_INLINE int cvIplDepth (int type)
CV_INLINE int cvIsInf (double value)
CV_INLINE int cvIsNaN (double value)
CV_INLINE CvMat cvMat (int rows, int cols, int type, void *data CV_DEFAULT(NULL))
CV_INLINE double cvmGet (const CvMat *mat, int row, int col)
CV_INLINE void cvmSet (CvMat *mat, int row, int col, double value)
CV_INLINE CvPoint cvPoint (int x, int y)
CV_INLINE CvPoint2D32f cvPoint2D32f (double x, double y)
CV_INLINE CvPoint2D64f cvPoint2D64f (double x, double y)
CV_INLINE CvPoint3D32f cvPoint3D32f (double x, double y, double z)
CV_INLINE CvPoint3D64f cvPoint3D64f (double x, double y, double z)
CV_INLINE CvPoint cvPointFrom32f (CvPoint2D32f point)
CV_INLINE CvPoint2D32f cvPointTo32f (CvPoint point)
CV_INLINE unsigned cvRandInt (CvRNG *rng)
CV_INLINE double cvRandReal (CvRNG *rng)
CV_INLINE CvScalar cvRealScalar (double val0)
CV_INLINE CvRect cvRect (int x, int y, int width, int height)
CV_INLINE IplROI cvRectToROI (CvRect rect, int coi)
CV_INLINE CvRNG cvRNG (int64 seed CV_DEFAULT(-1))
CV_INLINE CvRect cvROIToRect (IplROI roi)
CV_INLINE int cvRound (double value)
CV_INLINE CvScalar cvScalar (double val0, double val1 CV_DEFAULT(0), double val2 CV_DEFAULT(0), double val3 CV_DEFAULT(0))
CV_INLINE CvScalar cvScalarAll (double val0123)
CV_INLINE CvSize cvSize (int width, int height)
CV_INLINE CvSize2D32f cvSize2D32f (double width, double height)
CV_INLINE CvSlice cvSlice (int start, int end)
CV_INLINE CvTermCriteria cvTermCriteria (int type, int max_iter, double epsilon)

Define Documentation

#define CV_16S   3

Definition at line 549 of file core/types_c.h.

#define CV_16SC ( n   )     CV_MAKETYPE(CV_16S,(n))

Definition at line 583 of file core/types_c.h.

#define CV_16SC1   CV_MAKETYPE(CV_16S,1)

Definition at line 579 of file core/types_c.h.

#define CV_16SC2   CV_MAKETYPE(CV_16S,2)

Definition at line 580 of file core/types_c.h.

#define CV_16SC3   CV_MAKETYPE(CV_16S,3)

Definition at line 581 of file core/types_c.h.

#define CV_16SC4   CV_MAKETYPE(CV_16S,4)

Definition at line 582 of file core/types_c.h.

#define CV_16U   2

Definition at line 548 of file core/types_c.h.

#define CV_16UC ( n   )     CV_MAKETYPE(CV_16U,(n))

Definition at line 577 of file core/types_c.h.

#define CV_16UC1   CV_MAKETYPE(CV_16U,1)

Definition at line 573 of file core/types_c.h.

#define CV_16UC2   CV_MAKETYPE(CV_16U,2)

Definition at line 574 of file core/types_c.h.

#define CV_16UC3   CV_MAKETYPE(CV_16U,3)

Definition at line 575 of file core/types_c.h.

#define CV_16UC4   CV_MAKETYPE(CV_16U,4)

Definition at line 576 of file core/types_c.h.

#define CV_32F   5

Definition at line 551 of file core/types_c.h.

#define CV_32FC ( n   )     CV_MAKETYPE(CV_32F,(n))

Definition at line 595 of file core/types_c.h.

#define CV_32FC1   CV_MAKETYPE(CV_32F,1)

Definition at line 591 of file core/types_c.h.

#define CV_32FC2   CV_MAKETYPE(CV_32F,2)

Definition at line 592 of file core/types_c.h.

#define CV_32FC3   CV_MAKETYPE(CV_32F,3)

Definition at line 593 of file core/types_c.h.

#define CV_32FC4   CV_MAKETYPE(CV_32F,4)

Definition at line 594 of file core/types_c.h.

#define CV_32S   4

Definition at line 550 of file core/types_c.h.

#define CV_32SC ( n   )     CV_MAKETYPE(CV_32S,(n))

Definition at line 589 of file core/types_c.h.

#define CV_32SC1   CV_MAKETYPE(CV_32S,1)

Definition at line 585 of file core/types_c.h.

#define CV_32SC2   CV_MAKETYPE(CV_32S,2)

Definition at line 586 of file core/types_c.h.

#define CV_32SC3   CV_MAKETYPE(CV_32S,3)

Definition at line 587 of file core/types_c.h.

#define CV_32SC4   CV_MAKETYPE(CV_32S,4)

Definition at line 588 of file core/types_c.h.

#define CV_64F   6

Definition at line 552 of file core/types_c.h.

#define CV_64FC ( n   )     CV_MAKETYPE(CV_64F,(n))

Definition at line 601 of file core/types_c.h.

#define CV_64FC1   CV_MAKETYPE(CV_64F,1)

Definition at line 597 of file core/types_c.h.

#define CV_64FC2   CV_MAKETYPE(CV_64F,2)

Definition at line 598 of file core/types_c.h.

#define CV_64FC3   CV_MAKETYPE(CV_64F,3)

Definition at line 599 of file core/types_c.h.

#define CV_64FC4   CV_MAKETYPE(CV_64F,4)

Definition at line 600 of file core/types_c.h.

#define CV_8S   1

Definition at line 547 of file core/types_c.h.

#define CV_8SC ( n   )     CV_MAKETYPE(CV_8S,(n))

Definition at line 571 of file core/types_c.h.

#define CV_8SC1   CV_MAKETYPE(CV_8S,1)

Definition at line 567 of file core/types_c.h.

#define CV_8SC2   CV_MAKETYPE(CV_8S,2)

Definition at line 568 of file core/types_c.h.

#define CV_8SC3   CV_MAKETYPE(CV_8S,3)

Definition at line 569 of file core/types_c.h.

#define CV_8SC4   CV_MAKETYPE(CV_8S,4)

Definition at line 570 of file core/types_c.h.

#define CV_8U   0

Definition at line 546 of file core/types_c.h.

#define CV_8UC ( n   )     CV_MAKETYPE(CV_8U,(n))

Definition at line 565 of file core/types_c.h.

#define CV_8UC1   CV_MAKETYPE(CV_8U,1)

Definition at line 561 of file core/types_c.h.

#define CV_8UC2   CV_MAKETYPE(CV_8U,2)

Definition at line 562 of file core/types_c.h.

#define CV_8UC3   CV_MAKETYPE(CV_8U,3)

Definition at line 563 of file core/types_c.h.

#define CV_8UC4   CV_MAKETYPE(CV_8U,4)

Definition at line 564 of file core/types_c.h.

#define CV_ARE_CNS_EQ ( mat1,
mat2   )     ((((mat1)->type ^ (mat2)->type) & CV_MAT_CN_MASK) == 0)

Definition at line 680 of file core/types_c.h.

#define CV_ARE_DEPTHS_EQ ( mat1,
mat2   )     ((((mat1)->type ^ (mat2)->type) & CV_MAT_DEPTH_MASK) == 0)

Definition at line 683 of file core/types_c.h.

#define CV_ARE_SIZES_EQ ( mat1,
mat2   )     ((mat1)->rows == (mat2)->rows && (mat1)->cols == (mat2)->cols)

Definition at line 686 of file core/types_c.h.

#define CV_ARE_TYPES_EQ ( mat1,
mat2   )     ((((mat1)->type ^ (mat2)->type) & CV_MAT_TYPE_MASK) == 0)

Definition at line 677 of file core/types_c.h.

#define CV_AUTO_STEP   0x7fffffff

Definition at line 603 of file core/types_c.h.

#define CV_CARRAY ( counter   ) 

Definition at line 161 of file core/types_c.h.

#define CV_CDECL

Definition at line 103 of file core/types_c.h.

#define CV_CMP ( a,
 )     (((a) > (b)) - ((a) < (b)))

Definition at line 281 of file core/types_c.h.

#define CV_CN_MAX   512

Definition at line 542 of file core/types_c.h.

#define CV_CN_SHIFT   3

Definition at line 543 of file core/types_c.h.

 
#define CV_CONTOUR_FIELDS (  ) 
Value:
CV_SEQUENCE_FIELDS()     \
    CvRect rect;             \
    int color;               \
    int reserved[3];

Definition at line 1430 of file core/types_c.h.

#define CV_CURRENT_POINT ( reader   )     (*((CvPoint*)((reader).ptr)))

Definition at line 1689 of file core/types_c.h.

#define CV_CUSTOM_CARRAY ( args   ) 

Definition at line 162 of file core/types_c.h.

#define CV_DEFAULT ( val   ) 

Definition at line 113 of file core/types_c.h.

#define CV_DEPTH_MAX   (1 << CV_CN_SHIFT)

Definition at line 544 of file core/types_c.h.

#define CV_ELEM_SIZE ( type   )     (CV_MAT_CN(type) << ((((sizeof(size_t)/4+1)*16384|0x3a50) >> CV_MAT_DEPTH(type)*2) & 3))

Definition at line 698 of file core/types_c.h.

#define CV_ELEM_SIZE1 ( type   )     ((((sizeof(size_t)<<28)|0x8442211) >> CV_MAT_DEPTH(type)*4) & 15)

Definition at line 694 of file core/types_c.h.

#define CV_EXPORTS

Definition at line 138 of file core/types_c.h.

#define CV_EXPORTS_AS ( synonym   )     CV_EXPORTS

Definition at line 165 of file core/types_c.h.

#define CV_EXPORTS_W   CV_EXPORTS

Definition at line 163 of file core/types_c.h.

#define CV_EXPORTS_W_MAP   CV_EXPORTS

Definition at line 166 of file core/types_c.h.

#define CV_EXPORTS_W_SIMPLE   CV_EXPORTS

Definition at line 164 of file core/types_c.h.

#define CV_EXTERN_C

Definition at line 112 of file core/types_c.h.

#define CV_EXTERN_C_FUNCPTR ( x   )     typedef x

Definition at line 121 of file core/types_c.h.

#define CV_GET_SEQ_ELEM ( elem_type,
seq,
index   )     CV_SEQ_ELEM( (seq), elem_type, (index) )

Definition at line 1615 of file core/types_c.h.

#define CV_GRAPH   CV_SEQ_KIND_GRAPH

Definition at line 1495 of file core/types_c.h.

 
#define CV_GRAPH_EDGE_FIELDS (  ) 
Value:
int flags;                      \
    float weight;                   \
    struct CvGraphEdge* next[2];    \
    struct CvGraphVtx* vtx[2];

Definition at line 1374 of file core/types_c.h.

 
#define CV_GRAPH_FIELDS (  ) 
Value:

Definition at line 1409 of file core/types_c.h.

#define CV_GRAPH_FLAG_ORIENTED   (1 << CV_SEQ_FLAG_SHIFT)

Definition at line 1493 of file core/types_c.h.

 
#define CV_GRAPH_VERTEX_FIELDS (  ) 
Value:
int flags;                      \
    struct CvGraphEdge* first;

Definition at line 1381 of file core/types_c.h.

#define CV_HIST_ARRAY   0

Definition at line 890 of file core/types_c.h.

#define CV_HIST_HAS_RANGES ( hist   )     (((hist)->type & CV_HIST_RANGES_FLAG) != 0)

Definition at line 919 of file core/types_c.h.

#define CV_HIST_MAGIC_VAL   0x42450000

Definition at line 884 of file core/types_c.h.

#define CV_HIST_RANGES_FLAG   (1 << 11)

Definition at line 888 of file core/types_c.h.

#define CV_HIST_SPARSE   1

Definition at line 891 of file core/types_c.h.

#define CV_HIST_TREE   CV_HIST_SPARSE

Definition at line 892 of file core/types_c.h.

#define CV_HIST_UNIFORM   1

Definition at line 896 of file core/types_c.h.

#define CV_HIST_UNIFORM_FLAG   (1 << 10)

Definition at line 885 of file core/types_c.h.

#define CV_IABS (  )     (((a) ^ ((a) < 0 ? -1 : 0)) - ((a) < 0 ? -1 : 0))

Definition at line 277 of file core/types_c.h.

#define CV_IMAGE_ELEM ( image,
elemtype,
row,
col   )     (((elemtype*)((image)->imageData + (image)->widthStep*(row)))[(col)])

Definition at line 535 of file core/types_c.h.

#define CV_IMAX ( a,
 )     ((a) ^ (((a)^(b)) & (((a) > (b)) - 1)))

Definition at line 273 of file core/types_c.h.

#define CV_IMIN ( a,
 )     ((a) ^ (((a)^(b)) & (((a) < (b)) - 1)))

Definition at line 271 of file core/types_c.h.

#define CV_IN_OUT

Definition at line 167 of file core/types_c.h.

#define CV_INLINE   static

Definition at line 131 of file core/types_c.h.

#define CV_IS_CONT_MAT   CV_IS_MAT_CONT

Definition at line 613 of file core/types_c.h.

#define CV_IS_GRAPH ( seq   )     (CV_IS_SET(seq) && CV_SEQ_KIND((CvSet*)(seq)) == CV_SEQ_KIND_GRAPH)

Definition at line 1558 of file core/types_c.h.

#define CV_IS_GRAPH_ORIENTED ( seq   )     (((seq)->flags & CV_GRAPH_FLAG_ORIENTED) != 0)

Definition at line 1561 of file core/types_c.h.

#define CV_IS_HIST ( hist   ) 
Value:
((hist) != NULL  && \
     (((CvHistogram*)(hist))->type & CV_MAGIC_MASK) == CV_HIST_MAGIC_VAL && \
     (hist)->bins != NULL)

Definition at line 908 of file core/types_c.h.

#define CV_IS_IMAGE ( img   )     (CV_IS_IMAGE_HDR(img) && ((IplImage*)img)->imageData != NULL)

Definition at line 526 of file core/types_c.h.

#define CV_IS_IMAGE_HDR ( img   )     ((img) != NULL && ((const IplImage*)(img))->nSize == sizeof(IplImage))

Definition at line 523 of file core/types_c.h.

#define CV_IS_MASK_ARR ( mat   )     (((mat)->type & (CV_MAT_TYPE_MASK & ~CV_8SC1)) == 0)

Definition at line 674 of file core/types_c.h.

#define CV_IS_MAT ( mat   )     (CV_IS_MAT_HDR(mat) && ((const CvMat*)(mat))->data.ptr != NULL)

Definition at line 671 of file core/types_c.h.

#define CV_IS_MAT_CONST ( mat   )     (((mat)->rows|(mat)->cols) == 1)

Definition at line 689 of file core/types_c.h.

#define CV_IS_MAT_CONT ( flags   )     ((flags) & CV_MAT_CONT_FLAG)

Definition at line 612 of file core/types_c.h.

#define CV_IS_MAT_HDR ( mat   ) 
Value:
((mat) != NULL && \
    (((const CvMat*)(mat))->type & CV_MAGIC_MASK) == CV_MAT_MAGIC_VAL && \
    ((const CvMat*)(mat))->cols > 0 && ((const CvMat*)(mat))->rows > 0)

Definition at line 661 of file core/types_c.h.

#define CV_IS_MAT_HDR_Z ( mat   ) 
Value:
((mat) != NULL && \
    (((const CvMat*)(mat))->type & CV_MAGIC_MASK) == CV_MAT_MAGIC_VAL && \
    ((const CvMat*)(mat))->cols >= 0 && ((const CvMat*)(mat))->rows >= 0)

Definition at line 666 of file core/types_c.h.

#define CV_IS_MATND ( mat   )     (CV_IS_MATND_HDR(mat) && ((const CvMatND*)(mat))->data.ptr != NULL)

Definition at line 822 of file core/types_c.h.

#define CV_IS_MATND_HDR ( mat   )     ((mat) != NULL && (((const CvMatND*)(mat))->type & CV_MAGIC_MASK) == CV_MATND_MAGIC_VAL)

Definition at line 819 of file core/types_c.h.

#define CV_IS_SEQ ( seq   )     ((seq) != NULL && (((CvSeq*)(seq))->flags & CV_MAGIC_MASK) == CV_SEQ_MAGIC_VAL)

Definition at line 1450 of file core/types_c.h.

#define CV_IS_SEQ_CHAIN ( seq   )     (CV_SEQ_KIND(seq) == CV_SEQ_KIND_CURVE && (seq)->elem_size == 1)

Definition at line 1545 of file core/types_c.h.

#define CV_IS_SEQ_CHAIN_CONTOUR ( seq   )     (CV_IS_SEQ_CHAIN( seq ) && CV_IS_SEQ_CLOSED( seq ))

Definition at line 1551 of file core/types_c.h.

#define CV_IS_SEQ_CLOSED ( seq   )     (((seq)->flags & CV_SEQ_FLAG_CLOSED) != 0)

Definition at line 1527 of file core/types_c.h.

#define CV_IS_SEQ_CONTOUR ( seq   )     (CV_IS_SEQ_CLOSED(seq) && (CV_IS_SEQ_POLYLINE(seq) || CV_IS_SEQ_CHAIN(seq)))

Definition at line 1548 of file core/types_c.h.

#define CV_IS_SEQ_CONVEX ( seq   )     0

Definition at line 1528 of file core/types_c.h.

#define CV_IS_SEQ_CURVE ( seq   )     (CV_SEQ_KIND(seq) == CV_SEQ_KIND_CURVE)

Definition at line 1526 of file core/types_c.h.

#define CV_IS_SEQ_HOLE ( seq   )     (((seq)->flags & CV_SEQ_FLAG_HOLE) != 0)

Definition at line 1529 of file core/types_c.h.

#define CV_IS_SEQ_INDEX ( seq   ) 
Value:

Definition at line 1523 of file core/types_c.h.

#define CV_IS_SEQ_POINT_SET ( seq   )     ((CV_SEQ_ELTYPE(seq) == CV_32SC2 || CV_SEQ_ELTYPE(seq) == CV_32FC2))

Definition at line 1533 of file core/types_c.h.

#define CV_IS_SEQ_POINT_SUBSET ( seq   )     (CV_IS_SEQ_INDEX( seq ) || CV_SEQ_ELTYPE(seq) == CV_SEQ_ELTYPE_PPOINT)

Definition at line 1536 of file core/types_c.h.

#define CV_IS_SEQ_POLYGON ( seq   )     (CV_IS_SEQ_POLYLINE(seq) && CV_IS_SEQ_CLOSED(seq))

Definition at line 1542 of file core/types_c.h.

#define CV_IS_SEQ_POLYGON_TREE ( seq   ) 
Value:

Definition at line 1554 of file core/types_c.h.

#define CV_IS_SEQ_POLYLINE ( seq   )     (CV_SEQ_KIND(seq) == CV_SEQ_KIND_CURVE && CV_IS_SEQ_POINT_SET(seq))

Definition at line 1539 of file core/types_c.h.

#define CV_IS_SEQ_SIMPLE ( seq   )     1

Definition at line 1530 of file core/types_c.h.

#define CV_IS_SET ( set   )     ((set) != NULL && (((CvSeq*)(set))->flags & CV_MAGIC_MASK) == CV_SET_MAGIC_VAL)

Definition at line 1454 of file core/types_c.h.

#define CV_IS_SET_ELEM ( ptr   )     (((CvSetElem*)(ptr))->flags >= 0)

Definition at line 1352 of file core/types_c.h.

#define CV_IS_SPARSE_HIST ( hist   )     CV_IS_SPARSE_MAT((hist)->bins)

Definition at line 916 of file core/types_c.h.

#define CV_IS_SPARSE_MAT ( mat   )     CV_IS_SPARSE_MAT_HDR(mat)

Definition at line 855 of file core/types_c.h.

#define CV_IS_SPARSE_MAT_HDR ( mat   ) 
Value:
((mat) != NULL && \
    (((const CvSparseMat*)(mat))->type & CV_MAGIC_MASK) == CV_SPARSE_MAT_MAGIC_VAL)

Definition at line 851 of file core/types_c.h.

#define CV_IS_STORAGE ( storage   ) 
Value:
((storage) != NULL &&       \
    (((CvMemStorage*)(storage))->signature & CV_MAGIC_MASK) == CV_STORAGE_MAGIC_VAL)

Definition at line 1260 of file core/types_c.h.

#define CV_IS_SUBDIV2D ( seq   )     (CV_IS_SET(seq) && CV_SEQ_KIND((CvSet*)(seq)) == CV_SEQ_KIND_SUBDIV2D)

Definition at line 1564 of file core/types_c.h.

#define CV_IS_SUBMAT ( flags   )     ((flags) & CV_MAT_SUBMAT_FLAG)

Definition at line 616 of file core/types_c.h.

#define CV_IS_UNIFORM_HIST ( hist   )     (((hist)->type & CV_HIST_UNIFORM_FLAG) != 0)

Definition at line 913 of file core/types_c.h.

#define CV_LOG2   0.69314718055994530941723212145818

Definition at line 258 of file core/types_c.h.

#define CV_MAGIC_MASK   0xFFFF0000

Definition at line 618 of file core/types_c.h.

#define CV_MAKE_TYPE   CV_MAKETYPE

Definition at line 559 of file core/types_c.h.

#define CV_MAKETYPE ( depth,
cn   )     (CV_MAT_DEPTH(depth) + (((cn)-1) << CV_CN_SHIFT))

Definition at line 558 of file core/types_c.h.

#define CV_MAT_CN ( flags   )     ((((flags) & CV_MAT_CN_MASK) >> CV_CN_SHIFT) + 1)

Definition at line 607 of file core/types_c.h.

#define CV_MAT_CN_MASK   ((CV_CN_MAX - 1) << CV_CN_SHIFT)

Definition at line 606 of file core/types_c.h.

#define CV_MAT_CONT_FLAG   (1 << CV_MAT_CONT_FLAG_SHIFT)

Definition at line 611 of file core/types_c.h.

#define CV_MAT_CONT_FLAG_SHIFT   14

Definition at line 610 of file core/types_c.h.

#define CV_MAT_DEPTH ( flags   )     ((flags) & CV_MAT_DEPTH_MASK)

Definition at line 556 of file core/types_c.h.

#define CV_MAT_DEPTH_MASK   (CV_DEPTH_MAX - 1)

Definition at line 555 of file core/types_c.h.

#define CV_MAT_ELEM ( mat,
elemtype,
row,
col   )     (*(elemtype*)CV_MAT_ELEM_PTR_FAST( mat, row, col, sizeof(elemtype)))

Definition at line 736 of file core/types_c.h.

#define CV_MAT_ELEM_PTR ( mat,
row,
col   )     CV_MAT_ELEM_PTR_FAST( mat, row, col, CV_ELEM_SIZE((mat).type) )

Definition at line 733 of file core/types_c.h.

#define CV_MAT_ELEM_PTR_FAST ( mat,
row,
col,
pix_size   ) 
Value:
(assert( (unsigned)(row) < (unsigned)(mat).rows &&   \
             (unsigned)(col) < (unsigned)(mat).cols ),   \
     (mat).data.ptr + (size_t)(mat).step*(row) + (pix_size)*(col))

Definition at line 728 of file core/types_c.h.

#define CV_MAT_MAGIC_VAL   0x42420000

Definition at line 619 of file core/types_c.h.

#define CV_MAT_TYPE ( flags   )     ((flags) & CV_MAT_TYPE_MASK)

Definition at line 609 of file core/types_c.h.

#define CV_MAT_TYPE_MASK   (CV_DEPTH_MAX*CV_CN_MAX - 1)

Definition at line 608 of file core/types_c.h.

#define CV_MATND_MAGIC_VAL   0x42430000

Definition at line 787 of file core/types_c.h.

#define CV_MAX_DIM   32

Definition at line 790 of file core/types_c.h.

#define CV_MAX_DIM_HEAP   (1 << 16)

Definition at line 791 of file core/types_c.h.

#define CV_NEXT_GRAPH_EDGE ( edge,
vertex   ) 
Value:
(assert((edge)->vtx[0] == (vertex) || (edge)->vtx[1] == (vertex)),  \
      (edge)->next[(edge)->vtx[1] == (vertex)])

Definition at line 1706 of file core/types_c.h.

#define CV_NEXT_SEQ_ELEM ( elem_size,
reader   ) 
Value:
{                                                             \
    if( ((reader).ptr += (elem_size)) >= (reader).block_max ) \
    {                                                         \
        cvChangeSeqBlock( &(reader), 1 );                     \
    }                                                         \
}

Definition at line 1642 of file core/types_c.h.

#define CV_NODE_EMPTY   32

Definition at line 1763 of file core/types_c.h.

#define CV_NODE_FLOAT   CV_NODE_REAL

Definition at line 1750 of file core/types_c.h.

#define CV_NODE_FLOW   8

Definition at line 1761 of file core/types_c.h.

#define CV_NODE_HAS_NAME ( flags   )     (((flags) & CV_NODE_NAMED) != 0)

Definition at line 1775 of file core/types_c.h.

#define CV_NODE_IDX ( mat,
node   )     ((int*)((uchar*)(node) + (mat)->idxoffset))

Definition at line 876 of file core/types_c.h.

#define CV_NODE_INT   1

Definition at line 1747 of file core/types_c.h.

#define CV_NODE_INTEGER   CV_NODE_INT

Definition at line 1748 of file core/types_c.h.

#define CV_NODE_IS_COLLECTION ( flags   )     (CV_NODE_TYPE(flags) >= CV_NODE_SEQ)

Definition at line 1771 of file core/types_c.h.

#define CV_NODE_IS_EMPTY ( flags   )     (((flags) & CV_NODE_EMPTY) != 0)

Definition at line 1773 of file core/types_c.h.

#define CV_NODE_IS_FLOW ( flags   )     (((flags) & CV_NODE_FLOW) != 0)

Definition at line 1772 of file core/types_c.h.

#define CV_NODE_IS_INT ( flags   )     (CV_NODE_TYPE(flags) == CV_NODE_INT)

Definition at line 1766 of file core/types_c.h.

#define CV_NODE_IS_MAP ( flags   )     (CV_NODE_TYPE(flags) == CV_NODE_MAP)

Definition at line 1770 of file core/types_c.h.

#define CV_NODE_IS_REAL ( flags   )     (CV_NODE_TYPE(flags) == CV_NODE_REAL)

Definition at line 1767 of file core/types_c.h.

#define CV_NODE_IS_SEQ ( flags   )     (CV_NODE_TYPE(flags) == CV_NODE_SEQ)

Definition at line 1769 of file core/types_c.h.

#define CV_NODE_IS_STRING ( flags   )     (CV_NODE_TYPE(flags) == CV_NODE_STRING)

Definition at line 1768 of file core/types_c.h.

#define CV_NODE_IS_USER ( flags   )     (((flags) & CV_NODE_USER) != 0)

Definition at line 1774 of file core/types_c.h.

#define CV_NODE_MAP   6

Definition at line 1755 of file core/types_c.h.

#define CV_NODE_NAMED   64

Definition at line 1764 of file core/types_c.h.

#define CV_NODE_NONE   0

Definition at line 1746 of file core/types_c.h.

#define CV_NODE_REAL   2

Definition at line 1749 of file core/types_c.h.

#define CV_NODE_REF   4

Definition at line 1753 of file core/types_c.h.

#define CV_NODE_SEQ   5

Definition at line 1754 of file core/types_c.h.

#define CV_NODE_SEQ_IS_SIMPLE ( seq   )     (((seq)->flags & CV_NODE_SEQ_SIMPLE) != 0)

Definition at line 1778 of file core/types_c.h.

#define CV_NODE_SEQ_SIMPLE   256

Definition at line 1777 of file core/types_c.h.

#define CV_NODE_STR   3

Definition at line 1751 of file core/types_c.h.

#define CV_NODE_STRING   CV_NODE_STR

Definition at line 1752 of file core/types_c.h.

#define CV_NODE_TYPE ( flags   )     ((flags) & CV_NODE_TYPE_MASK)

Definition at line 1758 of file core/types_c.h.

#define CV_NODE_TYPE_MASK   7

Definition at line 1756 of file core/types_c.h.

#define CV_NODE_USER   16

Definition at line 1762 of file core/types_c.h.

#define CV_NODE_VAL ( mat,
node   )     ((void*)((uchar*)(node) + (mat)->valoffset))

Definition at line 875 of file core/types_c.h.

#define CV_ORIENTED_GRAPH   (CV_SEQ_KIND_GRAPH|CV_GRAPH_FLAG_ORIENTED)

Definition at line 1496 of file core/types_c.h.

#define CV_OUT

Definition at line 168 of file core/types_c.h.

#define CV_PI   3.1415926535897932384626433832795

Definition at line 257 of file core/types_c.h.

#define CV_PREV_POINT ( reader   )     (*((CvPoint*)((reader).prev_elem)))

Definition at line 1690 of file core/types_c.h.

#define CV_PREV_SEQ_ELEM ( elem_size,
reader   ) 
Value:
{                                                            \
    if( ((reader).ptr -= (elem_size)) < (reader).block_min ) \
    {                                                        \
        cvChangeSeqBlock( &(reader), -1 );                   \
    }                                                        \
}

Definition at line 1652 of file core/types_c.h.

#define CV_PROP

Definition at line 169 of file core/types_c.h.

#define CV_PROP_RW

Definition at line 170 of file core/types_c.h.

#define CV_READ_CHAIN_POINT ( _pt,
reader   ) 
Value:
{                                                                       \
    (_pt) = (reader).pt;                                                \
    if( (reader).ptr )                                                  \
    {                                                                   \
        CV_READ_SEQ_ELEM( (reader).code, (reader));                     \
        assert( ((reader).code & ~7) == 0 );                            \
        (reader).pt.x += (reader).deltas[(int)(reader).code][0];        \
        (reader).pt.y += (reader).deltas[(int)(reader).code][1];        \
    }                                                                   \
}

Definition at line 1677 of file core/types_c.h.

#define CV_READ_EDGE ( pt1,
pt2,
reader   ) 
Value:
{                                                      \
    assert( sizeof(pt1) == sizeof(CvPoint) &&          \
            sizeof(pt2) == sizeof(CvPoint) &&          \
            reader.seq->elem_size == sizeof(CvPoint)); \
    (pt1) = CV_PREV_POINT( reader );                   \
    (pt2) = CV_CURRENT_POINT( reader );                \
    (reader).prev_elem = (reader).ptr;                 \
    CV_NEXT_SEQ_ELEM( sizeof(CvPoint), (reader));      \
}

Definition at line 1692 of file core/types_c.h.

#define CV_READ_SEQ_ELEM ( elem,
reader   ) 
Value:
{                                                              \
    assert( (reader).seq->elem_size == sizeof(elem));          \
    memcpy( &(elem), (reader).ptr, sizeof((elem)));            \
    CV_NEXT_SEQ_ELEM( sizeof(elem), reader )                   \
}

Definition at line 1661 of file core/types_c.h.

#define CV_REV_READ_SEQ_ELEM ( elem,
reader   ) 
Value:
{                                                                \
    assert( (reader).seq->elem_size == sizeof(elem));            \
    memcpy(&(elem), (reader).ptr, sizeof((elem)));               \
    CV_PREV_SEQ_ELEM( sizeof(elem), reader )                     \
}

Definition at line 1669 of file core/types_c.h.

#define CV_RNG_COEFF   4164903690U

Definition at line 378 of file core/types_c.h.

#define CV_SEQ_CHAIN   (CV_SEQ_KIND_CURVE | CV_SEQ_ELTYPE_CODE)

Definition at line 1507 of file core/types_c.h.

#define CV_SEQ_CHAIN_CONTOUR   (CV_SEQ_FLAG_CLOSED | CV_SEQ_CHAIN)

Definition at line 1508 of file core/types_c.h.

#define CV_SEQ_CONNECTED_COMP   (CV_SEQ_KIND_GENERIC | CV_SEQ_ELTYPE_CONNECTED_COMP)

Definition at line 1514 of file core/types_c.h.

#define CV_SEQ_CONTOUR   CV_SEQ_POLYGON

Definition at line 1503 of file core/types_c.h.

#define CV_SEQ_ELEM ( seq,
elem_type,
index   ) 
Value:
/* assert gives some guarantee that <seq> parameter is valid */  \
(   assert(sizeof((seq)->first[0]) == sizeof(CvSeqBlock) &&      \
    (seq)->elem_size == sizeof(elem_type)),                      \
    (elem_type*)((seq)->first && (unsigned)index <               \
    (unsigned)((seq)->first->count) ?                            \
    (seq)->first->data + (index) * sizeof(elem_type) :           \
    cvGetSeqElem( (CvSeq*)(seq), (index) )))

Definition at line 1607 of file core/types_c.h.

#define CV_SEQ_ELTYPE ( seq   )     ((seq)->flags & CV_SEQ_ELTYPE_MASK)

Definition at line 1519 of file core/types_c.h.

#define CV_SEQ_ELTYPE_BITS   12

Definition at line 1457 of file core/types_c.h.

#define CV_SEQ_ELTYPE_CODE   CV_8UC1

Definition at line 1461 of file core/types_c.h.

#define CV_SEQ_ELTYPE_CONNECTED_COMP   0

Definition at line 1469 of file core/types_c.h.

#define CV_SEQ_ELTYPE_GENERIC   0

Definition at line 1462 of file core/types_c.h.

#define CV_SEQ_ELTYPE_GRAPH_EDGE   0

Definition at line 1466 of file core/types_c.h.

#define CV_SEQ_ELTYPE_GRAPH_VERTEX   0

Definition at line 1467 of file core/types_c.h.

#define CV_SEQ_ELTYPE_INDEX   CV_32SC1

Definition at line 1465 of file core/types_c.h.

#define CV_SEQ_ELTYPE_MASK   ((1 << CV_SEQ_ELTYPE_BITS) - 1)

Definition at line 1458 of file core/types_c.h.

#define CV_SEQ_ELTYPE_POINT   CV_32SC2

Definition at line 1460 of file core/types_c.h.

#define CV_SEQ_ELTYPE_POINT3D   CV_32FC3

Definition at line 1470 of file core/types_c.h.

#define CV_SEQ_ELTYPE_PPOINT   CV_SEQ_ELTYPE_PTR

Definition at line 1464 of file core/types_c.h.

#define CV_SEQ_ELTYPE_PTR   CV_USRTYPE1

Definition at line 1463 of file core/types_c.h.

#define CV_SEQ_ELTYPE_TRIAN_ATR   0

Definition at line 1468 of file core/types_c.h.

#define CV_SEQ_FLAG_CLOSED   (1 << CV_SEQ_FLAG_SHIFT)

Definition at line 1487 of file core/types_c.h.

#define CV_SEQ_FLAG_CONVEX   (0 << CV_SEQ_FLAG_SHIFT)

Definition at line 1489 of file core/types_c.h.

#define CV_SEQ_FLAG_HOLE   (2 << CV_SEQ_FLAG_SHIFT)

Definition at line 1490 of file core/types_c.h.

#define CV_SEQ_FLAG_SHIFT   (CV_SEQ_KIND_BITS + CV_SEQ_ELTYPE_BITS)

Definition at line 1484 of file core/types_c.h.

#define CV_SEQ_FLAG_SIMPLE   (0 << CV_SEQ_FLAG_SHIFT)

Definition at line 1488 of file core/types_c.h.

#define CV_SEQ_INDEX   (CV_SEQ_KIND_GENERIC | CV_SEQ_ELTYPE_INDEX)

Definition at line 1517 of file core/types_c.h.

#define CV_SEQ_KIND ( seq   )     ((seq)->flags & CV_SEQ_KIND_MASK )

Definition at line 1520 of file core/types_c.h.

#define CV_SEQ_KIND_BIN_TREE   (2 << CV_SEQ_ELTYPE_BITS)

Definition at line 1478 of file core/types_c.h.

#define CV_SEQ_KIND_BITS   2

Definition at line 1472 of file core/types_c.h.

#define CV_SEQ_KIND_CURVE   (1 << CV_SEQ_ELTYPE_BITS)

Definition at line 1477 of file core/types_c.h.

#define CV_SEQ_KIND_GENERIC   (0 << CV_SEQ_ELTYPE_BITS)

Definition at line 1476 of file core/types_c.h.

#define CV_SEQ_KIND_GRAPH   (1 << CV_SEQ_ELTYPE_BITS)

Definition at line 1481 of file core/types_c.h.

#define CV_SEQ_KIND_MASK   (((1 << CV_SEQ_KIND_BITS) - 1)<<CV_SEQ_ELTYPE_BITS)

Definition at line 1473 of file core/types_c.h.

#define CV_SEQ_KIND_SUBDIV2D   (2 << CV_SEQ_ELTYPE_BITS)

Definition at line 1482 of file core/types_c.h.

#define CV_SEQ_MAGIC_VAL   0x42990000

Definition at line 1448 of file core/types_c.h.

#define CV_SEQ_POINT3D_SET   (CV_SEQ_KIND_GENERIC| CV_SEQ_ELTYPE_POINT3D)

Definition at line 1500 of file core/types_c.h.

#define CV_SEQ_POINT_SET   (CV_SEQ_KIND_GENERIC| CV_SEQ_ELTYPE_POINT)

Definition at line 1499 of file core/types_c.h.

#define CV_SEQ_POLYGON   (CV_SEQ_FLAG_CLOSED | CV_SEQ_POLYLINE )

Definition at line 1502 of file core/types_c.h.

#define CV_SEQ_POLYGON_TREE   (CV_SEQ_KIND_BIN_TREE | CV_SEQ_ELTYPE_TRIAN_ATR)

Definition at line 1511 of file core/types_c.h.

#define CV_SEQ_POLYLINE   (CV_SEQ_KIND_CURVE | CV_SEQ_ELTYPE_POINT)

Definition at line 1501 of file core/types_c.h.

 
#define CV_SEQ_READER_FIELDS (  ) 
Value:
int          header_size;                                       \
    CvSeq*       seq;        /* sequence, beign read */             \
    CvSeqBlock*  block;      /* current block */                    \
    schar*       ptr;        /* pointer to element be read next */  \
    schar*       block_min;  /* pointer to the beginning of block */\
    schar*       block_max;  /* pointer to the end of block */      \
    int          delta_index;/* = seq->first->start_index   */      \
    schar*       prev_elem;

Definition at line 1586 of file core/types_c.h.

#define CV_SEQ_SIMPLE_POLYGON   (CV_SEQ_FLAG_SIMPLE | CV_SEQ_POLYGON )

Definition at line 1504 of file core/types_c.h.

 
#define CV_SEQ_WRITER_FIELDS (  ) 
Value:
int          header_size;                                      \
    CvSeq*       seq;        /* the sequence written */            \
    CvSeqBlock*  block;      /* current block */                   \
    schar*       ptr;        /* pointer to free space */           \
    schar*       block_min;  /* pointer to the beginning of block*/\
    schar*       block_max;

Definition at line 1571 of file core/types_c.h.

 
#define CV_SEQUENCE_FIELDS (  ) 
Value:
CV_TREE_NODE_FIELDS(CvSeq);                                           \
    int       total;          /* Total number of elements.            */  \
    int       elem_size;      /* Size of sequence element in bytes.   */  \
    schar*    block_max;      /* Maximal bound of the last block.     */  \
    schar*    ptr;            /* Current write pointer.               */  \
    int       delta_elems;    /* Grow seq this many at a time.        */  \
    CvMemStorage* storage;    /* Where the seq is stored.             */  \
    CvSeqBlock* free_blocks;  /* Free blocks list.                    */  \
    CvSeqBlock* first;

Definition at line 1299 of file core/types_c.h.

#define CV_SET_ELEM_FIELDS ( elem_type   ) 
Value:
int  flags;                         \
    struct elem_type* next_free;

Definition at line 1326 of file core/types_c.h.

#define CV_SET_ELEM_FREE_FLAG   (1 << (sizeof(int)*8-1))

Definition at line 1349 of file core/types_c.h.

#define CV_SET_ELEM_IDX_MASK   ((1 << 26) - 1)

Definition at line 1348 of file core/types_c.h.

 
#define CV_SET_FIELDS (  ) 
Value:
CV_SEQUENCE_FIELDS()     \
    CvSetElem* free_elems;   \
    int active_count;

Definition at line 1336 of file core/types_c.h.

#define CV_SET_MAGIC_VAL   0x42980000

Definition at line 1453 of file core/types_c.h.

#define CV_SIGN (  )     CV_CMP((a),0)

Definition at line 282 of file core/types_c.h.

#define CV_SPARSE_MAT_MAGIC_VAL   0x42440000

Definition at line 830 of file core/types_c.h.

#define CV_STDCALL

Definition at line 104 of file core/types_c.h.

#define CV_STORAGE_APPEND   2

Definition at line 1724 of file core/types_c.h.

#define CV_STORAGE_MAGIC_VAL   0x42890000

Definition at line 1247 of file core/types_c.h.

#define CV_STORAGE_READ   0

Definition at line 1720 of file core/types_c.h.

#define CV_STORAGE_WRITE   1

Definition at line 1721 of file core/types_c.h.

#define CV_STORAGE_WRITE_BINARY   CV_STORAGE_WRITE

Definition at line 1723 of file core/types_c.h.

#define CV_STORAGE_WRITE_TEXT   CV_STORAGE_WRITE

Definition at line 1722 of file core/types_c.h.

#define CV_SUBMAT_FLAG   (1 << CV_SUBMAT_FLAG_SHIFT)

Definition at line 615 of file core/types_c.h.

#define CV_SUBMAT_FLAG_SHIFT   15

Definition at line 614 of file core/types_c.h.

#define CV_SWAP ( a,
b,
 )     ((t) = (a), (a) = (b), (b) = (t))

Definition at line 260 of file core/types_c.h.

#define CV_TERMCRIT_EPS   2

Definition at line 972 of file core/types_c.h.

#define CV_TERMCRIT_ITER   1

Definition at line 970 of file core/types_c.h.

#define CV_TERMCRIT_NUMBER   CV_TERMCRIT_ITER

Definition at line 971 of file core/types_c.h.

#define CV_TREE_NODE_FIELDS ( node_type   ) 
Value:
int       flags;             /* Miscellaneous flags.     */      \
    int       header_size;       /* Size of sequence header. */      \
    struct    node_type* h_prev; /* Previous sequence.       */      \
    struct    node_type* h_next; /* Next sequence.           */      \
    struct    node_type* v_prev; /* 2nd previous sequence.   */      \
    struct    node_type* v_next

Definition at line 1287 of file core/types_c.h.

#define CV_TYPE_NAME_GRAPH   "opencv-graph"

Definition at line 1419 of file core/types_c.h.

#define CV_TYPE_NAME_IMAGE   "opencv-image"

Definition at line 521 of file core/types_c.h.

#define CV_TYPE_NAME_MAT   "opencv-matrix"

Definition at line 620 of file core/types_c.h.

#define CV_TYPE_NAME_MATND   "opencv-nd-matrix"

Definition at line 788 of file core/types_c.h.

#define CV_TYPE_NAME_SEQ   "opencv-sequence"

Definition at line 1316 of file core/types_c.h.

#define CV_TYPE_NAME_SEQ_TREE   "opencv-sequence-tree"

Definition at line 1317 of file core/types_c.h.

#define CV_TYPE_NAME_SPARSE_MAT   "opencv-sparse-matrix"

Definition at line 831 of file core/types_c.h.

#define CV_USRTYPE1   7

Definition at line 553 of file core/types_c.h.

#define CV_WHOLE_ARR   cvSlice( 0, 0x3fffffff )

Definition at line 604 of file core/types_c.h.

#define CV_WHOLE_SEQ   cvSlice(0, CV_WHOLE_SEQ_END_INDEX)

Definition at line 1195 of file core/types_c.h.

#define CV_WHOLE_SEQ_END_INDEX   0x3fffffff

Definition at line 1194 of file core/types_c.h.

#define CV_WRAP

Definition at line 171 of file core/types_c.h.

#define CV_WRAP_AS ( synonym   ) 

Definition at line 172 of file core/types_c.h.

#define CV_WRAP_DEFAULT ( value   ) 

Definition at line 173 of file core/types_c.h.

#define CV_WRITE_SEQ_ELEM ( elem,
writer   ) 
Value:
{                                                     \
    assert( (writer).seq->elem_size == sizeof(elem)); \
    if( (writer).ptr >= (writer).block_max )          \
    {                                                 \
        cvCreateSeqBlock( &writer);                   \
    }                                                 \
    assert( (writer).ptr <= (writer).block_max - sizeof(elem));\
    memcpy((writer).ptr, &(elem), sizeof(elem));      \
    (writer).ptr += sizeof(elem);                     \
}

Definition at line 1628 of file core/types_c.h.

#define CV_WRITE_SEQ_ELEM_VAR ( elem_ptr,
writer   ) 
Value:
{                                                     \
    if( (writer).ptr >= (writer).block_max )          \
    {                                                 \
        cvCreateSeqBlock( &writer);                   \
    }                                                 \
    memcpy((writer).ptr, elem_ptr, (writer).seq->elem_size);\
    (writer).ptr += (writer).seq->elem_size;          \
}

Definition at line 1618 of file core/types_c.h.

#define CVAPI ( rettype   )     CV_EXTERN_C CV_EXPORTS rettype CV_CDECL

Definition at line 142 of file core/types_c.h.

#define cvInvSqrt ( value   )     ((float)(1./sqrt(value)))

Definition at line 341 of file core/types_c.h.

#define cvSqrt ( value   )     ((float)sqrt(value))

Definition at line 342 of file core/types_c.h.

#define IPL2CV_DEPTH ( depth   ) 
Value:
((((CV_8U)+(CV_16U<<4)+(CV_32F<<8)+(CV_64F<<16)+(CV_8S<<20)+ \
    (CV_16S<<24)+(CV_32S<<28)) >> ((((depth) & 0xF0) >> 2) + \
    (((depth) & IPL_DEPTH_SIGN) ? 20 : 0))) & 15)

Definition at line 701 of file core/types_c.h.

#define IPL_ALIGN_16BYTES   16

Definition at line 431 of file core/types_c.h.

#define IPL_ALIGN_32BYTES   32

Definition at line 432 of file core/types_c.h.

#define IPL_ALIGN_4BYTES   4

Definition at line 429 of file core/types_c.h.

#define IPL_ALIGN_8BYTES   8

Definition at line 430 of file core/types_c.h.

#define IPL_ALIGN_DWORD   IPL_ALIGN_4BYTES

Definition at line 434 of file core/types_c.h.

#define IPL_ALIGN_QWORD   IPL_ALIGN_8BYTES

Definition at line 435 of file core/types_c.h.

#define IPL_BORDER_CONSTANT   0

Definition at line 437 of file core/types_c.h.

#define IPL_BORDER_REFLECT   2

Definition at line 439 of file core/types_c.h.

#define IPL_BORDER_REFLECT_101   4

Definition at line 517 of file core/types_c.h.

#define IPL_BORDER_REPLICATE   1

Definition at line 438 of file core/types_c.h.

#define IPL_BORDER_TRANSPARENT   5

Definition at line 518 of file core/types_c.h.

#define IPL_BORDER_WRAP   3

Definition at line 440 of file core/types_c.h.

#define IPL_DATA_ORDER_PIXEL   0

Definition at line 423 of file core/types_c.h.

#define IPL_DATA_ORDER_PLANE   1

Definition at line 424 of file core/types_c.h.

#define IPL_DEPTH_16S   (IPL_DEPTH_SIGN|16)

Definition at line 420 of file core/types_c.h.

#define IPL_DEPTH_16U   16

Definition at line 416 of file core/types_c.h.

#define IPL_DEPTH_1U   1

Definition at line 414 of file core/types_c.h.

#define IPL_DEPTH_32F   32

Definition at line 417 of file core/types_c.h.

#define IPL_DEPTH_32S   (IPL_DEPTH_SIGN|32)

Definition at line 421 of file core/types_c.h.

#define IPL_DEPTH_64F   64

Definition at line 531 of file core/types_c.h.

#define IPL_DEPTH_8S   (IPL_DEPTH_SIGN| 8)

Definition at line 419 of file core/types_c.h.

#define IPL_DEPTH_8U   8

Definition at line 415 of file core/types_c.h.

#define IPL_DEPTH_SIGN   0x80000000

Definition at line 412 of file core/types_c.h.

#define IPL_IMAGE_DATA   2

Definition at line 511 of file core/types_c.h.

#define IPL_IMAGE_HEADER   1

Definition at line 510 of file core/types_c.h.

#define IPL_IMAGE_MAGIC_VAL   ((int)sizeof(IplImage))

Definition at line 520 of file core/types_c.h.

#define IPL_IMAGE_ROI   4

Definition at line 512 of file core/types_c.h.

#define IPL_ORIGIN_BL   1

Definition at line 427 of file core/types_c.h.

#define IPL_ORIGIN_TL   0

Definition at line 426 of file core/types_c.h.

#define MAX ( a,
 )     ((a) < (b) ? (b) : (a))

Definition at line 267 of file core/types_c.h.

#define MIN ( a,
 )     ((a) > (b) ? (b) : (a))

Definition at line 263 of file core/types_c.h.


Typedef Documentation

typedef union Cv32suf Cv32suf
typedef union Cv64suf Cv64suf
typedef void CvArr

Definition at line 180 of file core/types_c.h.

typedef struct CvAttrList CvAttrList
typedef struct CvBox2D CvBox2D
typedef struct CvChain CvChain
typedef void*(CV_CDECL * CvCloneFunc)(const void *struct_ptr)

Definition at line 1824 of file core/types_c.h.

typedef struct CvContour CvContour
typedef struct CvFileNode CvFileNode
typedef struct CvGenericHash CvFileNodeHash

Definition at line 1797 of file core/types_c.h.

typedef struct CvFileStorage CvFileStorage

Definition at line 1717 of file core/types_c.h.

typedef struct CvGraph CvGraph
typedef struct CvGraphEdge CvGraphEdge
typedef struct CvGraphVtx CvGraphVtx
typedef struct CvGraphVtx2D CvGraphVtx2D
typedef struct CvHistogram CvHistogram
typedef int CvHistType

Definition at line 882 of file core/types_c.h.

typedef int(CV_CDECL * CvIsInstanceFunc)(const void *struct_ptr)

Definition at line 1819 of file core/types_c.h.

typedef struct CvMat CvMat
typedef struct CvMatND CvMatND
typedef struct CvMemBlock CvMemBlock
typedef struct CvMemStorage CvMemStorage
typedef struct CvModuleInfo CvModuleInfo
typedef struct CvPoint CvPoint
typedef struct CvPoint2D32f CvPoint2D32f
typedef struct CvPoint2D64f CvPoint2D64f

Definition at line 1442 of file core/types_c.h.

typedef struct CvPoint3D32f CvPoint3D32f
typedef struct CvPoint3D64f CvPoint3D64f
typedef void*(CV_CDECL * CvReadFunc)(CvFileStorage *storage, CvFileNode *node)

Definition at line 1821 of file core/types_c.h.

typedef struct CvRect CvRect
typedef void(CV_CDECL * CvReleaseFunc)(void **struct_dblptr)

Definition at line 1820 of file core/types_c.h.

typedef uint64 CvRNG

Definition at line 376 of file core/types_c.h.

typedef struct CvScalar CvScalar
typedef struct CvSeq CvSeq
typedef struct CvSeqBlock CvSeqBlock
typedef struct CvSeqReader CvSeqReader
typedef struct CvSeqWriter CvSeqWriter
typedef struct CvSet CvSet
typedef struct CvSetElem CvSetElem
typedef struct CvSize2D32f CvSize2D32f
typedef struct CvSlice CvSlice
typedef struct CvSparseMat CvSparseMat
typedef struct CvSparseNode CvSparseNode
typedef int CVStatus

Definition at line 198 of file core/types_c.h.

typedef struct CvString CvString
typedef struct CvTypeInfo CvTypeInfo
typedef void(CV_CDECL * CvWriteFunc)(CvFileStorage *storage, const char *name, const void *struct_ptr, CvAttrList attributes)

Definition at line 1822 of file core/types_c.h.

typedef int64_t int64

Definition at line 149 of file core/types_c.h.

typedef struct _IplConvKernel IplConvKernel
typedef struct _IplImage IplImage
typedef struct _IplROI IplROI
typedef struct _IplTileInfo IplTileInfo

Definition at line 477 of file core/types_c.h.

typedef signed char schar

Definition at line 158 of file core/types_c.h.

typedef unsigned char uchar

Definition at line 154 of file core/types_c.h.

typedef uint64_t uint64

Definition at line 150 of file core/types_c.h.

typedef unsigned short ushort

Definition at line 155 of file core/types_c.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
CV_StsOk 
CV_StsBackTrace 
CV_StsError 
CV_StsInternal 
CV_StsNoMem 
CV_StsBadArg 
CV_StsBadFunc 
CV_StsNoConv 
CV_StsAutoTrace 
CV_HeaderIsNull 
CV_BadImageSize 
CV_BadOffset 
CV_BadDataPtr 
CV_BadStep 
CV_BadModelOrChSeq 
CV_BadNumChannels 
CV_BadNumChannel1U 
CV_BadDepth 
CV_BadAlphaChannel 
CV_BadOrder 
CV_BadOrigin 
CV_BadAlign 
CV_BadCallBack 
CV_BadTileSize 
CV_BadCOI 
CV_BadROISize 
CV_MaskIsTiled 
CV_StsNullPtr 
CV_StsVecLengthErr 
CV_StsFilterStructContentErr 
CV_StsKernelStructContentErr 
CV_StsFilterOffsetErr 
CV_StsBadSize 
CV_StsDivByZero 
CV_StsInplaceNotSupported 
CV_StsObjectNotFound 
CV_StsUnmatchedFormats 
CV_StsBadFlag 
CV_StsBadPoint 
CV_StsBadMask 
CV_StsUnmatchedSizes 
CV_StsUnsupportedFormat 
CV_StsOutOfRange 
CV_StsParseError 
CV_StsNotImplemented 
CV_StsBadMemBlock 
CV_StsAssert 
CV_GpuNotSupported 
CV_GpuApiCallError 
CV_GpuNppCallError 

Definition at line 200 of file core/types_c.h.


Function Documentation

CV_INLINE CvAttrList cvAttrList ( const char **attr   CV_DEFAULTNULL,
CvAttrList *next   CV_DEFAULTNULL 
)

Definition at line 1734 of file core/types_c.h.

CV_INLINE int cvCeil ( double  value  ) 

Definition at line 324 of file core/types_c.h.

CV_INLINE int cvFloor ( double  value  ) 

Definition at line 306 of file core/types_c.h.

CV_INLINE int cvIplDepth ( int  type  ) 

Definition at line 775 of file core/types_c.h.

CV_INLINE int cvIsInf ( double  value  ) 

Definition at line 359 of file core/types_c.h.

CV_INLINE int cvIsNaN ( double  value  ) 

Definition at line 344 of file core/types_c.h.

CV_INLINE CvMat cvMat ( int  rows,
int  cols,
int  type,
void *data   CV_DEFAULTNULL 
)

Definition at line 710 of file core/types_c.h.

CV_INLINE double cvmGet ( const CvMat mat,
int  row,
int  col 
)

Definition at line 740 of file core/types_c.h.

CV_INLINE void cvmSet ( CvMat mat,
int  row,
int  col,
double  value 
)

Definition at line 758 of file core/types_c.h.

CV_INLINE CvPoint cvPoint ( int  x,
int  y 
)

Definition at line 1006 of file core/types_c.h.

CV_INLINE CvPoint2D32f cvPoint2D32f ( double  x,
double  y 
)

Definition at line 1025 of file core/types_c.h.

CV_INLINE CvPoint2D64f cvPoint2D64f ( double  x,
double  y 
)

Definition at line 1081 of file core/types_c.h.

CV_INLINE CvPoint3D32f cvPoint3D32f ( double  x,
double  y,
double  z 
)

Definition at line 1061 of file core/types_c.h.

CV_INLINE CvPoint3D64f cvPoint3D64f ( double  x,
double  y,
double  z 
)

Definition at line 1101 of file core/types_c.h.

CV_INLINE CvPoint cvPointFrom32f ( CvPoint2D32f  point  ) 

Definition at line 1042 of file core/types_c.h.

CV_INLINE CvPoint2D32f cvPointTo32f ( CvPoint  point  ) 

Definition at line 1036 of file core/types_c.h.

CV_INLINE unsigned cvRandInt ( CvRNG rng  ) 

Definition at line 387 of file core/types_c.h.

CV_INLINE double cvRandReal ( CvRNG rng  ) 

Definition at line 396 of file core/types_c.h.

CV_INLINE CvScalar cvRealScalar ( double  val0  ) 

Definition at line 1216 of file core/types_c.h.

CV_INLINE CvRect cvRect ( int  x,
int  y,
int  width,
int  height 
)

Definition at line 937 of file core/types_c.h.

CV_INLINE IplROI cvRectToROI ( CvRect  rect,
int  coi 
)

Definition at line 950 of file core/types_c.h.

CV_INLINE CvRNG cvRNG ( int64 seed   CV_DEFAULT-1  ) 

Definition at line 380 of file core/types_c.h.

CV_INLINE CvRect cvROIToRect ( IplROI  roi  ) 

Definition at line 963 of file core/types_c.h.

CV_INLINE int cvRound ( double  value  ) 

Definition at line 284 of file core/types_c.h.

CV_INLINE CvScalar cvScalar ( double  val0,
double val1   CV_DEFAULT0,
double val2   CV_DEFAULT0,
double val3   CV_DEFAULT0 
)

Definition at line 1206 of file core/types_c.h.

CV_INLINE CvScalar cvScalarAll ( double  val0123  ) 

Definition at line 1224 of file core/types_c.h.

CV_INLINE CvSize cvSize ( int  width,
int  height 
)

Definition at line 1122 of file core/types_c.h.

CV_INLINE CvSize2D32f cvSize2D32f ( double  width,
double  height 
)

Definition at line 1140 of file core/types_c.h.

CV_INLINE CvSlice cvSlice ( int  start,
int  end 
)

Definition at line 1185 of file core/types_c.h.

CV_INLINE CvTermCriteria cvTermCriteria ( int  type,
int  max_iter,
double  epsilon 
)

Definition at line 984 of file core/types_c.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


opencv2
Author(s): Gary Bradski and many others. See web page for a full contributor list. ROS package maintained by James Bowman.
autogenerated on Fri Jan 11 10:00:46 2013