Wondercoll
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Typedefs | Functions | Variables
cvpyramids.cpp File Reference
#include "_cv.h"

Macros

#define PD_FILTER(x0, x1, x2, x3, x4)   ((x2)*6+((x1)+(x3))*4+(x0)+(x4))
 
#define PD_LT(x0, x1, x2)   ((x0)*6 + (x1)*8 + (x2)*2)
 
#define PD_RB(x0, x1, x2, x3)   ((x0) + ((x1) + (x3))*4 + (x2)*7)
 
#define PD_SINGULAR(x0, x1)   (((x0) + (x1))*8)
 
#define PD_SCALE_INT(x)   (((x) + (1<<7)) >> 8)
 
#define PD_SCALE_FLT(x)   ((x)*0.00390625f)
 
#define PD_SZ   5
 
#define ICV_DEF_PYR_DOWN_FUNC(flavor, type, worktype, _pd_scale_)
 
#define PU_FILTER(x0, x1, x2)   ((x1)*6 + (x0) + (x2))
 
#define PU_FILTER_ZI(x0, x1)   (((x0) + (x1))*4)
 
#define PU_LT(x0, x1)   ((x0)*6 + (x1)*2)
 
#define PU_LT_ZI(x0, x1)   PU_FILTER_ZI((x0),(x1))
 
#define PU_RB(x0, x1)   ((x0) + (x1)*7)
 
#define PU_RB_ZI(x0)   ((x0)*8)
 
#define PU_SINGULAR(x0)   PU_RB_ZI((x0)) /* <--| the same formulas */
 
#define PU_SINGULAR_ZI(x0)   PU_RB_ZI((x0)) /* <--| */
 
#define PU_SCALE_INT(x)   (((x) + (1<<5)) >> 6)
 
#define PU_SCALE_FLT(x)   ((x)*0.015625f)
 
#define PU_SZ   3
 
#define ICV_DEF_PYR_UP_FUNC(flavor, type, worktype, _pu_scale_)
 
#define ICV_DEF_PYR_BORDER_FUNC(flavor, arrtype, worktype, _pd_scale_)
 
#define ICV_DEF_INIT_PYR_TABLE(FUNCNAME)
 
#define ICV_DEF_INIT_PYR_BORDER_TABLE(FUNCNAME)
 

Typedefs

typedef CvStatus(CV_STDCALLCvPyrDownBorderFunc )(const void *src, int srcstep, CvSize srcsize, void *dst, int dststep, CvSize dstsize, int cn)
 
typedef int srcstep
 
typedef int void * dst
 
typedef int void int dststep
 
typedef int void int CvSize size
 
typedef int void int CvSize void * buffer
 
typedef int void int CvSize
void int 
cn
 

Functions

typedef CvStatus (CV_STDCALL *CvPyramidFunc)(const void *src
 
CV_IMPL void cvPyrUp (const void *srcarr, void *dstarr, int _filter)
 
CV_IMPL void cvPyrDown (const void *srcarr, void *dstarr, int _filter)
 
CV_IMPL void cvReleasePyramid (CvMat ***_pyramid, int extra_layers)
 
CV_IMPL CvMat ** cvCreatePyramid (const CvArr *srcarr, int extra_layers, double rate, const CvSize *layer_sizes, CvArr *bufarr, int calc, int filter)
 

Variables

icvPyrDown_Gauss5x5_8u_C1R_t icvPyrDown_Gauss5x5_8u_C1R_p = 0
 
icvPyrDown_Gauss5x5_8u_C3R_t icvPyrDown_Gauss5x5_8u_C3R_p = 0
 
icvPyrDown_Gauss5x5_32f_C1R_t icvPyrDown_Gauss5x5_32f_C1R_p = 0
 
icvPyrDown_Gauss5x5_32f_C3R_t icvPyrDown_Gauss5x5_32f_C3R_p = 0
 
icvPyrUp_Gauss5x5_8u_C1R_t icvPyrUp_Gauss5x5_8u_C1R_p = 0
 
icvPyrUp_Gauss5x5_8u_C3R_t icvPyrUp_Gauss5x5_8u_C3R_p = 0
 
icvPyrUp_Gauss5x5_32f_C1R_t icvPyrUp_Gauss5x5_32f_C1R_p = 0
 
icvPyrUp_Gauss5x5_32f_C3R_t icvPyrUp_Gauss5x5_32f_C3R_p = 0
 
icvPyrUpGetBufSize_Gauss5x5_t icvPyrUpGetBufSize_Gauss5x5_p = 0
 
icvPyrDownGetBufSize_Gauss5x5_t icvPyrDownGetBufSize_Gauss5x5_p = 0
 

Macro Definition Documentation

#define ICV_DEF_INIT_PYR_BORDER_TABLE (   FUNCNAME)
Value:
static void icvInit##FUNCNAME##Table( CvFuncTable* tab ) \
{ \
tab->fn_2d[CV_8U] = (void*)icv##FUNCNAME##_8u_CnR; \
tab->fn_2d[CV_8S] = 0; \
tab->fn_2d[CV_16U] = (void*)icv##FUNCNAME##_16u_CnR; \
tab->fn_2d[CV_16S] = (void*)icv##FUNCNAME##_16s_CnR; \
tab->fn_2d[CV_32F] = (void*)icv##FUNCNAME##_32f_CnR; \
tab->fn_2d[CV_64F] = (void*)icv##FUNCNAME##_64f_CnR; \
}
#define ICV_DEF_INIT_PYR_TABLE (   FUNCNAME)
Value:
static void icvInit##FUNCNAME##Table( CvFuncTable* tab ) \
{ \
tab->fn_2d[CV_8U] = (void*)icv##FUNCNAME##_8u_CnR; \
tab->fn_2d[CV_8S] = 0; \
tab->fn_2d[CV_16S] = (void*)icv##FUNCNAME##_16s_CnR; \
tab->fn_2d[CV_16U] = (void*)icv##FUNCNAME##_16u_CnR; \
tab->fn_2d[CV_32F] = (void*)icv##FUNCNAME##_32f_CnR; \
tab->fn_2d[CV_64F] = (void*)icv##FUNCNAME##_64f_CnR; \
}
#define ICV_DEF_PYR_BORDER_FUNC (   flavor,
  arrtype,
  worktype,
  _pd_scale_ 
)
#define ICV_DEF_PYR_DOWN_FUNC (   flavor,
  type,
  worktype,
  _pd_scale_ 
)
#define ICV_DEF_PYR_UP_FUNC (   flavor,
  type,
  worktype,
  _pu_scale_ 
)
#define PD_FILTER (   x0,
  x1,
  x2,
  x3,
  x4 
)    ((x2)*6+((x1)+(x3))*4+(x0)+(x4))
#define PD_LT (   x0,
  x1,
  x2 
)    ((x0)*6 + (x1)*8 + (x2)*2)
#define PD_RB (   x0,
  x1,
  x2,
  x3 
)    ((x0) + ((x1) + (x3))*4 + (x2)*7)
#define PD_SCALE_FLT (   x)    ((x)*0.00390625f)
#define PD_SCALE_INT (   x)    (((x) + (1<<7)) >> 8)
#define PD_SINGULAR (   x0,
  x1 
)    (((x0) + (x1))*8)
#define PD_SZ   5
#define PU_FILTER (   x0,
  x1,
  x2 
)    ((x1)*6 + (x0) + (x2))
#define PU_FILTER_ZI (   x0,
  x1 
)    (((x0) + (x1))*4)
#define PU_LT (   x0,
  x1 
)    ((x0)*6 + (x1)*2)
#define PU_LT_ZI (   x0,
  x1 
)    PU_FILTER_ZI((x0),(x1))
#define PU_RB (   x0,
  x1 
)    ((x0) + (x1)*7)
#define PU_RB_ZI (   x0)    ((x0)*8)
#define PU_SCALE_FLT (   x)    ((x)*0.015625f)
#define PU_SCALE_INT (   x)    (((x) + (1<<5)) >> 6)
#define PU_SINGULAR (   x0)    PU_RB_ZI((x0)) /* <--| the same formulas */
#define PU_SINGULAR_ZI (   x0)    PU_RB_ZI((x0)) /* <--| */
#define PU_SZ   3

Typedef Documentation

typedef int void int CvSize void* buffer
typedef int void int CvSize void int cn
typedef CvStatus(CV_STDCALL * CvPyrDownBorderFunc)(const void *src, int srcstep, CvSize srcsize, void *dst, int dststep, CvSize dstsize, int cn)
typedef int void* dst
typedef int void int dststep
typedef int void int CvSize size
typedef int srcstep

Function Documentation

CV_IMPL CvMat** cvCreatePyramid ( const CvArr srcarr,
int  extra_layers,
double  rate,
const CvSize layer_sizes,
CvArr bufarr,
int  calc,
int  filter 
)
CV_IMPL void cvPyrDown ( const void *  srcarr,
void *  dstarr,
int  _filter 
)
CV_IMPL void cvPyrUp ( const void *  srcarr,
void *  dstarr,
int  _filter 
)
CV_IMPL void cvReleasePyramid ( CvMat ***  _pyramid,
int  extra_layers 
)
typedef CvStatus ( CV_STDCALL CvPyramidFunc) const

Variable Documentation

icvPyrDown_Gauss5x5_32f_C1R_t icvPyrDown_Gauss5x5_32f_C1R_p = 0
icvPyrDown_Gauss5x5_32f_C3R_t icvPyrDown_Gauss5x5_32f_C3R_p = 0
icvPyrDown_Gauss5x5_8u_C1R_t icvPyrDown_Gauss5x5_8u_C1R_p = 0
icvPyrDown_Gauss5x5_8u_C3R_t icvPyrDown_Gauss5x5_8u_C3R_p = 0
icvPyrDownGetBufSize_Gauss5x5_t icvPyrDownGetBufSize_Gauss5x5_p = 0
icvPyrUp_Gauss5x5_32f_C1R_t icvPyrUp_Gauss5x5_32f_C1R_p = 0
icvPyrUp_Gauss5x5_32f_C3R_t icvPyrUp_Gauss5x5_32f_C3R_p = 0
icvPyrUp_Gauss5x5_8u_C1R_t icvPyrUp_Gauss5x5_8u_C1R_p = 0
icvPyrUp_Gauss5x5_8u_C3R_t icvPyrUp_Gauss5x5_8u_C3R_p = 0
icvPyrUpGetBufSize_Gauss5x5_t icvPyrUpGetBufSize_Gauss5x5_p = 0