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

Macros

#define ICV_DEF_GET_RECT_SUB_PIX_FUNC(flavor, srctype, dsttype, worktype, cast_macro, scale_macro, cast_macro2)
 
#define ICV_DEF_GET_RECT_SUB_PIX_FUNC_C3(flavor, srctype, dsttype, worktype, cast_macro, scale_macro, mul_macro)
 
#define ICV_SHIFT   16
 
#define ICV_SCALE(x)   cvRound((x)*(1 << ICV_SHIFT))
 
#define ICV_MUL_SCALE(x, y)   (((x)*(y) + (1 << (ICV_SHIFT-1))) >> ICV_SHIFT)
 
#define ICV_DESCALE(x)   (((x)+(1 << (ICV_SHIFT-1))) >> ICV_SHIFT)
 
#define ICV_DEF_INIT_SUBPIX_TAB(FUNCNAME, FLAG)
 
#define ICV_32F8U(x)   ((uchar)cvRound(x))
 
#define ICV_DEF_GET_QUADRANGLE_SUB_PIX_FUNC(flavor, srctype, dsttype,worktype, cast_macro, cvt)
 
#define ICV_DEF_GET_QUADRANGLE_SUB_PIX_FUNC_C3(flavor, srctype, dsttype,worktype, cast_macro, cvt)
 

Typedefs

typedef CvStatus(CV_STDCALLCvGetRectSubPixFunc )(const void *src, int src_step, CvSize src_size, void *dst, int dst_step, CvSize win_size, CvPoint2D32f center)
 
typedef CvStatus(CV_STDCALLCvGetQuadrangleSubPixFunc )(const void *src, int src_step, CvSize src_size, void *dst, int dst_step, CvSize win_size, const float *matrix)
 

Functions

CV_IMPL int cvSampleLine (const void *img, CvPoint pt1, CvPoint pt2, void *_buffer, int connectivity)
 
CvStatus CV_STDCALL icvGetRectSubPix_8u32f_C1R (const uchar *src, int src_step, CvSize src_size, float *dst, int dst_step, CvSize win_size, CvPoint2D32f center)
 
CV_IMPL void cvGetRectSubPix (const void *srcarr, void *dstarr, CvPoint2D32f center)
 
CV_IMPL void cvGetQuadrangleSubPix (const void *srcarr, void *dstarr, const CvMat *mat)
 

Variables

icvCopySubpix_8u_C1R_t icvCopySubpix_8u_C1R_p = 0
 
icvCopySubpix_8u32f_C1R_t icvCopySubpix_8u32f_C1R_p = 0
 
icvCopySubpix_32f_C1R_t icvCopySubpix_32f_C1R_p = 0
 

Macro Definition Documentation

#define ICV_32F8U (   x)    ((uchar)cvRound(x))
#define ICV_DEF_GET_QUADRANGLE_SUB_PIX_FUNC (   flavor,
  srctype,
  dsttype,
  worktype,
  cast_macro,
  cvt 
)
#define ICV_DEF_GET_QUADRANGLE_SUB_PIX_FUNC_C3 (   flavor,
  srctype,
  dsttype,
  worktype,
  cast_macro,
  cvt 
)
#define ICV_DEF_GET_RECT_SUB_PIX_FUNC (   flavor,
  srctype,
  dsttype,
  worktype,
  cast_macro,
  scale_macro,
  cast_macro2 
)
#define ICV_DEF_GET_RECT_SUB_PIX_FUNC_C3 (   flavor,
  srctype,
  dsttype,
  worktype,
  cast_macro,
  scale_macro,
  mul_macro 
)
#define ICV_DEF_INIT_SUBPIX_TAB (   FUNCNAME,
  FLAG 
)
Value:
static void icvInit##FUNCNAME##FLAG##Table( CvFuncTable* tab ) \
{ \
tab->fn_2d[CV_8U] = (void*)icv##FUNCNAME##_8u_##FLAG; \
tab->fn_2d[CV_32F] = (void*)icv##FUNCNAME##_32f_##FLAG; \
\
tab->fn_2d[1] = (void*)icv##FUNCNAME##_8u32f_##FLAG; \
}
#define ICV_DESCALE (   x)    (((x)+(1 << (ICV_SHIFT-1))) >> ICV_SHIFT)
#define ICV_MUL_SCALE (   x,
  y 
)    (((x)*(y) + (1 << (ICV_SHIFT-1))) >> ICV_SHIFT)
#define ICV_SCALE (   x)    cvRound((x)*(1 << ICV_SHIFT))
#define ICV_SHIFT   16

Typedef Documentation

typedef CvStatus(CV_STDCALL * CvGetQuadrangleSubPixFunc)(const void *src, int src_step, CvSize src_size, void *dst, int dst_step, CvSize win_size, const float *matrix)
typedef CvStatus(CV_STDCALL * CvGetRectSubPixFunc)(const void *src, int src_step, CvSize src_size, void *dst, int dst_step, CvSize win_size, CvPoint2D32f center)

Function Documentation

CV_IMPL void cvGetQuadrangleSubPix ( const void *  srcarr,
void *  dstarr,
const CvMat mat 
)
CV_IMPL void cvGetRectSubPix ( const void *  srcarr,
void *  dstarr,
CvPoint2D32f  center 
)
CV_IMPL int cvSampleLine ( const void *  img,
CvPoint  pt1,
CvPoint  pt2,
void *  _buffer,
int  connectivity 
)
CvStatus CV_STDCALL icvGetRectSubPix_8u32f_C1R ( const uchar src,
int  src_step,
CvSize  src_size,
float dst,
int  dst_step,
CvSize  win_size,
CvPoint2D32f  center 
)

Variable Documentation

icvCopySubpix_32f_C1R_t icvCopySubpix_32f_C1R_p = 0
icvCopySubpix_8u32f_C1R_t icvCopySubpix_8u32f_C1R_p = 0
icvCopySubpix_8u_C1R_t icvCopySubpix_8u_C1R_p = 0