OpenCV  2.4.13
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

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

Enumeration Type Documentation

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

CV_INLINE int cvAlign ( int  size,
int  align 
)
CV_INLINE void* cvAlignPtr ( const void ptr,
int align   CV_DEFAULT32 
)
CV_INLINE CvSize cvGetMatSize ( const CvMat mat)
bool icvCheckGlError ( const char *  file,
const int  line,
const char *  func = "" 
)
void icvSetOpenGlFuncTab ( const CvOpenGlFuncTab tab)