OpenCV  2.4.13.4
Open Source Computer Vision
internal.hpp File Reference
#include <vector>
#include "opencv2/core/core.hpp"
#include "opencv2/core/types_c.h"
#include <pthread.h>

Classes

class  cv::BlockedRange
 
class  cv::Split
 
struct  CvFuncTable
 
struct  CvBigFuncTable
 
class  CvOpenGlFuncTab
 

Namespaces

 cv
 
 cv::ogl
 

Macros

#define FALSE   0
 
#define TRUE   1
 
#define __BEGIN__   __CV_BEGIN__
 
#define __END__   __CV_END__
 
#define EXIT   __CV_EXIT__
 
#define IPPI_CALL(func)   CV_Assert((func) >= 0)
 
#define CV_SSE   0
 
#define CV_SSE2   0
 
#define CV_SSE3   0
 
#define CV_SSSE3   0
 
#define CV_SSE4_1   0
 
#define CV_SSE4_2   0
 
#define CV_AVX   0
 
#define CV_AVX2   0
 
#define CV_NEON   0
 
#define CV_INIT_ALGORITHM(classname, algname, memberinit)
 
#define CV_MAX_INLINE_MAT_OP_SIZE   10
 
#define CV_MAX_LOCAL_MAT_SIZE   32
 
#define CV_MAX_LOCAL_SIZE   (CV_MAX_LOCAL_MAT_SIZE*CV_MAX_LOCAL_MAT_SIZE*(int)sizeof(double))
 
#define CV_DEFAULT_IMAGE_ROW_ALIGN   4
 
#define CV_DEFAULT_MAT_ROW_ALIGN   1
 
#define CV_MAX_ALLOC_SIZE   (((size_t)1 << (sizeof(size_t)*8-2)))
 
#define CV_MALLOC_ALIGN   16
 
#define CV_STRUCT_ALIGN   ((int)sizeof(double))
 
#define CV_STORAGE_BLOCK_SIZE   ((1<<16) - 128)
 
#define CV_SPARSE_MAT_BLOCK   (1<<12)
 
#define CV_SPARSE_HASH_SIZE0   (1<<10)
 
#define CV_SPARSE_HASH_RATIO   3
 
#define CV_MAX_STRLEN   1024
 
#define CV_CHECK_NANS(arr)
 
#define CV_DECL_ALIGNED(x)
 
#define CV_IMPL   CV_EXTERN_C
 
#define CV_DBG_BREAK()   { volatile int* crashMe = 0; *crashMe = 0; }
 
#define CV_STUB_STEP   (1 << 30)
 
#define CV_SIZEOF_FLOAT   ((int)sizeof(float))
 
#define CV_SIZEOF_SHORT   ((int)sizeof(short))
 
#define CV_ORIGIN_TL   0
 
#define CV_ORIGIN_BL   1
 
#define CV_POS_INF   0x7f800000
 
#define CV_NEG_INF   0x807fffff /* CV_TOGGLE_FLT(0xff800000) */
 
#define CV_1F   0x3f800000
 
#define CV_TOGGLE_FLT(x)   ((x)^((int)(x) < 0 ? 0x7fffffff : 0))
 
#define CV_TOGGLE_DBL(x)   ((x)^((int64)(x) < 0 ? CV_BIG_INT(0x7fffffffffffffff) : 0))
 
#define CV_NOP(a)   (a)
 
#define CV_ADD(a, b)   ((a) + (b))
 
#define CV_SUB(a, b)   ((a) - (b))
 
#define CV_MUL(a, b)   ((a) * (b))
 
#define CV_AND(a, b)   ((a) & (b))
 
#define CV_OR(a, b)   ((a) | (b))
 
#define CV_XOR(a, b)   ((a) ^ (b))
 
#define CV_ANDN(a, b)   (~(a) & (b))
 
#define CV_ORN(a, b)   (~(a) | (b))
 
#define CV_SQR(a)   ((a) * (a))
 
#define CV_LT(a, b)   ((a) < (b))
 
#define CV_LE(a, b)   ((a) <= (b))
 
#define CV_EQ(a, b)   ((a) == (b))
 
#define CV_NE(a, b)   ((a) != (b))
 
#define CV_GT(a, b)   ((a) > (b))
 
#define CV_GE(a, b)   ((a) >= (b))
 
#define CV_NONZERO(a)   ((a) != 0)
 
#define CV_NONZERO_FLT(a)   (((a)+(a)) != 0)
 
#define CV_CAST_8U(t)   (uchar)(!((t) & ~255) ? (t) : (t) > 0 ? 255 : 0)
 
#define CV_CAST_8S(t)   (schar)(!(((t)+128) & ~255) ? (t) : (t) > 0 ? 127 : -128)
 
#define CV_CAST_16U(t)   (ushort)(!((t) & ~65535) ? (t) : (t) > 0 ? 65535 : 0)
 
#define CV_CAST_16S(t)   (short)(!(((t)+32768) & ~65535) ? (t) : (t) > 0 ? 32767 : -32768)
 
#define CV_CAST_32S(t)   (int)(t)
 
#define CV_CAST_64S(t)   (int64)(t)
 
#define CV_CAST_32F(t)   (float)(t)
 
#define CV_CAST_64F(t)   (double)(t)
 
#define CV_PASTE2(a, b)   a##b
 
#define CV_PASTE(a, b)   CV_PASTE2(a,b)
 
#define CV_EMPTY
 
#define CV_MAKE_STR(a)   #a
 
#define CV_ZERO_OBJ(x)   memset((x), 0, sizeof(*(x)))
 
#define CV_DIM(static_array)   ((int)(sizeof(static_array)/sizeof((static_array)[0])))
 
#define cvUnsupportedFormat   "Unsupported format"
 
#define CV_DESCALE(x, n)   (((x) + (1 << ((n)-1))) >> (n))
 
#define CV_FLT_TO_FIX(x, n)   cvRound((x)*(1<<(n)))
 
#define CV_IMPLEMENT_QSORT_EX(func_name, T, LT, user_data_type)
 
#define CV_IMPLEMENT_QSORT(func_name, T, cmp)   CV_IMPLEMENT_QSORT_EX( func_name, T, cmp, int )
 
#define CV_NOTHROW   throw()
 
#define CV_INIT_FUNC_TAB(tab, FUNCNAME, FLAG)
 
#define CV_CheckGlError()   CV_DbgAssert( (cv::ogl::checkError(__FILE__, __LINE__, CV_Func)) )
 

Typedefs

typedef std::vector< Rect > cv::ConcurrentRectVector
 
typedef std::vector< double > cv::ConcurrentDoubleVector
 

Enumerations

enum  CvStatus {
  CV_BADMEMBLOCK_ERR = -113, CV_INPLACE_NOT_SUPPORTED_ERR = -112, CV_UNMATCHED_ROI_ERR = -111, CV_NOTFOUND_ERR = -110,
  CV_BADCONVERGENCE_ERR = -109, CV_BADDEPTH_ERR = -107, CV_BADROI_ERR = -106, CV_BADHEADER_ERR = -105,
  CV_UNMATCHED_FORMATS_ERR = -104, CV_UNSUPPORTED_COI_ERR = -103, CV_UNSUPPORTED_CHANNELS_ERR = -102, CV_UNSUPPORTED_DEPTH_ERR = -101,
  CV_UNSUPPORTED_FORMAT_ERR = -100, CV_BADARG_ERR = -49, CV_NOTDEFINED_ERR = -48, CV_BADCHANNELS_ERR = -47,
  CV_BADRANGE_ERR = -44, CV_BADSTEP_ERR = -29, CV_BADFLAG_ERR = -12, CV_DIV_BY_ZERO_ERR = -11,
  CV_BADCOEF_ERR = -10, CV_BADFACTOR_ERR = -7, CV_BADPOINT_ERR = -6, CV_BADSCALE_ERR = -4,
  CV_OUTOFMEM_ERR = -3, CV_NULLPTR_ERR = -2, CV_BADSIZE_ERR = -1, CV_NO_ERR = 0,
  CV_OK = CV_NO_ERR
}
 

Functions

const char * cv::currentParallelFramework ()
 
CV_INLINE voidcvAlignPtr (const void *ptr, int align CV_DEFAULT(32))
 
CV_INLINE int cvAlign (int size, int align)
 
CV_INLINE CvSize cvGetMatSize (const CvMat *mat)
 
void icvSetOpenGlFuncTab (const CvOpenGlFuncTab *tab)
 
bool icvCheckGlError (const char *file, const int line, const char *func="")
 
bool cv::ogl::checkError (const char *file, const int line, const char *func="")
 

Macro Definition Documentation

§ __BEGIN__

#define __BEGIN__   __CV_BEGIN__

§ __END__

#define __END__   __CV_END__

§ CV_1F

#define CV_1F   0x3f800000

§ CV_ADD

#define CV_ADD (   a,
 
)    ((a) + (b))

§ CV_AND

#define CV_AND (   a,
 
)    ((a) & (b))

§ CV_ANDN

#define CV_ANDN (   a,
 
)    (~(a) & (b))

§ CV_AVX

#define CV_AVX   0

§ CV_AVX2

#define CV_AVX2   0

§ CV_CAST_16S

#define CV_CAST_16S (   t)    (short)(!(((t)+32768) & ~65535) ? (t) : (t) > 0 ? 32767 : -32768)

§ CV_CAST_16U

#define CV_CAST_16U (   t)    (ushort)(!((t) & ~65535) ? (t) : (t) > 0 ? 65535 : 0)

§ CV_CAST_32F

#define CV_CAST_32F (   t)    (float)(t)

§ CV_CAST_32S

#define CV_CAST_32S (   t)    (int)(t)

§ CV_CAST_64F

#define CV_CAST_64F (   t)    (double)(t)

§ CV_CAST_64S

#define CV_CAST_64S (   t)    (int64)(t)

§ CV_CAST_8S

#define CV_CAST_8S (   t)    (schar)(!(((t)+128) & ~255) ? (t) : (t) > 0 ? 127 : -128)

§ CV_CAST_8U

#define CV_CAST_8U (   t)    (uchar)(!((t) & ~255) ? (t) : (t) > 0 ? 255 : 0)

§ CV_CHECK_NANS

#define CV_CHECK_NANS (   arr)

§ CV_CheckGlError

#define CV_CheckGlError ( )    CV_DbgAssert( (cv::ogl::checkError(__FILE__, __LINE__, CV_Func)) )

§ CV_DBG_BREAK

#define CV_DBG_BREAK ( )    { volatile int* crashMe = 0; *crashMe = 0; }

§ CV_DECL_ALIGNED

#define CV_DECL_ALIGNED (   x)

§ CV_DEFAULT_IMAGE_ROW_ALIGN

#define CV_DEFAULT_IMAGE_ROW_ALIGN   4

§ CV_DEFAULT_MAT_ROW_ALIGN

#define CV_DEFAULT_MAT_ROW_ALIGN   1

§ CV_DESCALE

#define CV_DESCALE (   x,
 
)    (((x) + (1 << ((n)-1))) >> (n))

§ CV_DIM

#define CV_DIM (   static_array)    ((int)(sizeof(static_array)/sizeof((static_array)[0])))

§ CV_EMPTY

#define CV_EMPTY

§ CV_EQ

#define CV_EQ (   a,
 
)    ((a) == (b))

§ CV_FLT_TO_FIX

#define CV_FLT_TO_FIX (   x,
 
)    cvRound((x)*(1<<(n)))

§ CV_GE

#define CV_GE (   a,
 
)    ((a) >= (b))

§ CV_GT

#define CV_GT (   a,
 
)    ((a) > (b))

§ CV_IMPL

#define CV_IMPL   CV_EXTERN_C

§ CV_IMPLEMENT_QSORT

#define CV_IMPLEMENT_QSORT (   func_name,
  T,
  cmp 
)    CV_IMPLEMENT_QSORT_EX( func_name, T, cmp, int )

§ CV_IMPLEMENT_QSORT_EX

#define CV_IMPLEMENT_QSORT_EX (   func_name,
  T,
  LT,
  user_data_type 
)

§ CV_INIT_ALGORITHM

#define CV_INIT_ALGORITHM (   classname,
  algname,
  memberinit 
)
Value:
static ::cv::Algorithm* create##classname() \
{ \
return new classname; \
} \
\
static ::cv::AlgorithmInfo& classname##_info() \
{ \
static ::cv::AlgorithmInfo classname##_info_var(algname, create##classname); \
return classname##_info_var; \
} \
\
CV_ATTR_USED static ::cv::AlgorithmInfo& classname##_info_auto = classname##_info(); \
\
::cv::AlgorithmInfo* classname::info() const \
{ \
static volatile bool initialized = false; \
\
if( !initialized ) \
{ \
initialized = true; \
classname obj; \
memberinit; \
} \
return &classname##_info(); \
}
Definition: core/core.hpp:4542

§ CV_INIT_FUNC_TAB

#define CV_INIT_FUNC_TAB (   tab,
  FUNCNAME,
  FLAG 
)
Value:
(tab).fn_2d[CV_8U] = (void*)FUNCNAME##_8u##FLAG; \
(tab).fn_2d[CV_8S] = 0; \
(tab).fn_2d[CV_16U] = (void*)FUNCNAME##_16u##FLAG; \
(tab).fn_2d[CV_16S] = (void*)FUNCNAME##_16s##FLAG; \
(tab).fn_2d[CV_32S] = (void*)FUNCNAME##_32s##FLAG; \
(tab).fn_2d[CV_32F] = (void*)FUNCNAME##_32f##FLAG; \
(tab).fn_2d[CV_64F] = (void*)FUNCNAME##_64f##FLAG
#define CV_64F
Definition: core/include/opencv2/core/types_c.h:611
#define CV_8S
Definition: core/include/opencv2/core/types_c.h:606
#define CV_16S
Definition: core/include/opencv2/core/types_c.h:608
#define CV_32F
Definition: core/include/opencv2/core/types_c.h:610
#define CV_32S
Definition: core/include/opencv2/core/types_c.h:609
#define CV_16U
Definition: core/include/opencv2/core/types_c.h:607
#define CV_8U
Definition: core/include/opencv2/core/types_c.h:605

§ CV_LE

#define CV_LE (   a,
 
)    ((a) <= (b))

§ CV_LT

#define CV_LT (   a,
 
)    ((a) < (b))

§ CV_MAKE_STR

#define CV_MAKE_STR (   a)    #a

§ CV_MALLOC_ALIGN

#define CV_MALLOC_ALIGN   16

§ CV_MAX_ALLOC_SIZE

#define CV_MAX_ALLOC_SIZE   (((size_t)1 << (sizeof(size_t)*8-2)))

§ CV_MAX_INLINE_MAT_OP_SIZE

#define CV_MAX_INLINE_MAT_OP_SIZE   10

§ CV_MAX_LOCAL_MAT_SIZE

#define CV_MAX_LOCAL_MAT_SIZE   32

§ CV_MAX_LOCAL_SIZE

#define CV_MAX_LOCAL_SIZE   (CV_MAX_LOCAL_MAT_SIZE*CV_MAX_LOCAL_MAT_SIZE*(int)sizeof(double))

§ CV_MAX_STRLEN

#define CV_MAX_STRLEN   1024

§ CV_MUL

#define CV_MUL (   a,
 
)    ((a) * (b))

§ CV_NE

#define CV_NE (   a,
 
)    ((a) != (b))

§ CV_NEG_INF

#define CV_NEG_INF   0x807fffff /* CV_TOGGLE_FLT(0xff800000) */

§ CV_NEON

#define CV_NEON   0

§ CV_NONZERO

#define CV_NONZERO (   a)    ((a) != 0)

§ CV_NONZERO_FLT

#define CV_NONZERO_FLT (   a)    (((a)+(a)) != 0)

§ CV_NOP

#define CV_NOP (   a)    (a)

§ CV_NOTHROW

#define CV_NOTHROW   throw()

§ CV_OR

#define CV_OR (   a,
 
)    ((a) | (b))

§ CV_ORIGIN_BL

#define CV_ORIGIN_BL   1

§ CV_ORIGIN_TL

#define CV_ORIGIN_TL   0

§ CV_ORN

#define CV_ORN (   a,
 
)    (~(a) | (b))

§ CV_PASTE

#define CV_PASTE (   a,
 
)    CV_PASTE2(a,b)

§ CV_PASTE2

#define CV_PASTE2 (   a,
 
)    a##b

§ CV_POS_INF

#define CV_POS_INF   0x7f800000

§ CV_SIZEOF_FLOAT

#define CV_SIZEOF_FLOAT   ((int)sizeof(float))

§ CV_SIZEOF_SHORT

#define CV_SIZEOF_SHORT   ((int)sizeof(short))

§ CV_SPARSE_HASH_RATIO

#define CV_SPARSE_HASH_RATIO   3

§ CV_SPARSE_HASH_SIZE0

#define CV_SPARSE_HASH_SIZE0   (1<<10)

§ CV_SPARSE_MAT_BLOCK

#define CV_SPARSE_MAT_BLOCK   (1<<12)

§ CV_SQR

#define CV_SQR (   a)    ((a) * (a))

§ CV_SSE

#define CV_SSE   0

§ CV_SSE2

#define CV_SSE2   0

§ CV_SSE3

#define CV_SSE3   0

§ CV_SSE4_1

#define CV_SSE4_1   0

§ CV_SSE4_2

#define CV_SSE4_2   0

§ CV_SSSE3

#define CV_SSSE3   0

§ CV_STORAGE_BLOCK_SIZE

#define CV_STORAGE_BLOCK_SIZE   ((1<<16) - 128)

§ CV_STRUCT_ALIGN

#define CV_STRUCT_ALIGN   ((int)sizeof(double))

§ CV_STUB_STEP

#define CV_STUB_STEP   (1 << 30)

§ CV_SUB

#define CV_SUB (   a,
 
)    ((a) - (b))

§ CV_TOGGLE_DBL

#define CV_TOGGLE_DBL (   x)    ((x)^((int64)(x) < 0 ? CV_BIG_INT(0x7fffffffffffffff) : 0))

§ CV_TOGGLE_FLT

#define CV_TOGGLE_FLT (   x)    ((x)^((int)(x) < 0 ? 0x7fffffff : 0))

§ CV_XOR

#define CV_XOR (   a,
 
)    ((a) ^ (b))

§ CV_ZERO_OBJ

#define CV_ZERO_OBJ (   x)    memset((x), 0, sizeof(*(x)))

§ cvUnsupportedFormat

#define cvUnsupportedFormat   "Unsupported format"

§ EXIT

#define EXIT   __CV_EXIT__

§ FALSE

#define FALSE   0

§ IPPI_CALL

#define IPPI_CALL (   func)    CV_Assert((func) >= 0)

§ TRUE

#define TRUE   1

Enumeration Type Documentation

§ CvStatus

enum CvStatus
Enumerator
CV_BADMEMBLOCK_ERR 
CV_INPLACE_NOT_SUPPORTED_ERR 
CV_UNMATCHED_ROI_ERR 
CV_NOTFOUND_ERR 
CV_BADCONVERGENCE_ERR 
CV_BADDEPTH_ERR 
CV_BADROI_ERR 
CV_BADHEADER_ERR 
CV_UNMATCHED_FORMATS_ERR 
CV_UNSUPPORTED_COI_ERR 
CV_UNSUPPORTED_CHANNELS_ERR 
CV_UNSUPPORTED_DEPTH_ERR 
CV_UNSUPPORTED_FORMAT_ERR 
CV_BADARG_ERR 
CV_NOTDEFINED_ERR 
CV_BADCHANNELS_ERR 
CV_BADRANGE_ERR 
CV_BADSTEP_ERR 
CV_BADFLAG_ERR 
CV_DIV_BY_ZERO_ERR 
CV_BADCOEF_ERR 
CV_BADFACTOR_ERR 
CV_BADPOINT_ERR 
CV_BADSCALE_ERR 
CV_OUTOFMEM_ERR 
CV_NULLPTR_ERR 
CV_BADSIZE_ERR 
CV_NO_ERR 
CV_OK 

Function Documentation

§ cvAlign()

CV_INLINE int cvAlign ( int  size,
int  align 
)

§ cvAlignPtr()

CV_INLINE void* cvAlignPtr ( const void ptr,
int align   CV_DEFAULT32 
)

§ cvGetMatSize()

CV_INLINE CvSize cvGetMatSize ( const CvMat mat)

§ icvCheckGlError()

bool icvCheckGlError ( const char *  file,
const int  line,
const char *  func = "" 
)

§ icvSetOpenGlFuncTab()

void icvSetOpenGlFuncTab ( const CvOpenGlFuncTab tab)