polyora/mylkpyramid.cpp File Reference

#include <cv.h>
#include <cxmisc.h>
#include <float.h>
#include <stdio.h>
#include "mylkpyramid.h"

Include dependency graph for mylkpyramid.cpp:

Go to the source code of this file.

Defines

#define CV_8TO32F(x)   icv8x32fTab_cv[(x)+256]
#define icvTransformVector_64d(matr, src, dst, w, h)   icvMulMatrix_64d( matr, w, h, src, 1, w, dst )

Functions

static void intersect (CvPoint2D32f pt, CvSize win_size, CvSize imgSize, CvPoint *min_pt, CvPoint *max_pt)
static void icvInitPyramidalAlgorithm (const PyrImage *imgA, const PyrImage *imgB, CvTermCriteria *criteria, int max_iters, int flags, uchar ***imgI, uchar ***imgJ, int **step, CvSize **size, float **scale, uchar **buffer)
static void icvCalcIxIy_32f (const float *src, int src_step, float *dstX, float *dstY, int dst_step, CvSize src_size, const float *smooth_k, float *buffer0)
static const void * icvAdjustRect (const void *srcptr, int src_step, int pix_size, CvSize src_size, CvSize win_size, CvPoint ip, CvRect *pRect)
static CvStatus mycvGetRectSubPix_8u32f_C1R (const uchar *src, int src_step, CvSize src_size, float *dst, int dst_step, CvSize win_size, CvPoint2D32f center)
CvStatus CV_STDCALL icvGetQuadrangleSubPix_8u32f_C1R (const unsigned char *src, int src_step, CvSize src_size, float *dst, int dst_step, CvSize win_size, const float *matrix)
CV_INLINE void icvMulMatrix_64d (const float *src1, int w1, int h1, const float *src2, int w2, int h2, float *dst)
void myCalcOpticalFlowPyrLK (const PyrImage *arrA, const PyrImage *arrB, const CvPoint2D32f *featuresA, CvPoint2D32f *featuresB, int count, CvSize winSize, int level, char *status, float *error, CvTermCriteria criteria, int flags)
static void icvGetRTMatrix (const CvPoint2D32f *a, const CvPoint2D32f *b, int count, CvMat *M, int full_affine)
CV_IMPL int cvEstimateRigidTransform (const CvArr *_A, const CvArr *_B, CvMat *_M, int full_affine)

Variables

static const float icv8x32fTab_cv []


Define Documentation

#define CV_8TO32F (  )     icv8x32fTab_cv[(x)+256]

Definition at line 49 of file mylkpyramid.cpp.

Referenced by mycvGetRectSubPix_8u32f_C1R().

#define icvTransformVector_64d ( matr,
src,
dst,
w,
 )     icvMulMatrix_64d( matr, w, h, src, 1, w, dst )

Definition at line 496 of file mylkpyramid.cpp.


Function Documentation

CV_IMPL int cvEstimateRigidTransform ( const CvArr *  _A,
const CvArr *  _B,
CvMat *  _M,
int  full_affine 
)

Definition at line 913 of file mylkpyramid.cpp.

References icvGetRTMatrix().

static const void* icvAdjustRect ( const void *  srcptr,
int  src_step,
int  pix_size,
CvSize  src_size,
CvSize  win_size,
CvPoint  ip,
CvRect *  pRect 
) [static]

Definition at line 313 of file mylkpyramid.cpp.

Referenced by mycvGetRectSubPix_8u32f_C1R().

static void icvCalcIxIy_32f ( const float *  src,
int  src_step,
float *  dstX,
float *  dstY,
int  dst_step,
CvSize  src_size,
const float *  smooth_k,
float *  buffer0 
) [static]

Definition at line 157 of file mylkpyramid.cpp.

Referenced by myCalcOpticalFlowPyrLK().

CvStatus CV_STDCALL icvGetQuadrangleSubPix_8u32f_C1R ( const unsigned char *  src,
int  src_step,
CvSize  src_size,
float *  dst,
int  dst_step,
CvSize  win_size,
const float *  matrix 
)

static void icvGetRTMatrix ( const CvPoint2D32f *  a,
const CvPoint2D32f *  b,
int  count,
CvMat *  M,
int  full_affine 
) [static]

Definition at line 814 of file mylkpyramid.cpp.

Referenced by cvEstimateRigidTransform().

static void icvInitPyramidalAlgorithm ( const PyrImage imgA,
const PyrImage imgB,
CvTermCriteria *  criteria,
int  max_iters,
int  flags,
uchar ***  imgI,
uchar ***  imgJ,
int **  step,
CvSize **  size,
float **  scale,
uchar **  buffer 
) [static]

Definition at line 75 of file mylkpyramid.cpp.

References PyrImage::images, and PyrImage::nbLev.

Referenced by myCalcOpticalFlowPyrLK().

CV_INLINE void icvMulMatrix_64d ( const float *  src1,
int  w1,
int  h1,
const float *  src2,
int  w2,
int  h2,
float *  dst 
)

Definition at line 499 of file mylkpyramid.cpp.

static void intersect ( CvPoint2D32f  pt,
CvSize  win_size,
CvSize  imgSize,
CvPoint *  min_pt,
CvPoint *  max_pt 
) [static]

Definition at line 52 of file mylkpyramid.cpp.

Referenced by myCalcOpticalFlowPyrLK().

void myCalcOpticalFlowPyrLK ( const PyrImage arrA,
const PyrImage arrB,
const CvPoint2D32f *  featuresA,
CvPoint2D32f *  featuresB,
int  count,
CvSize  winSize,
int  level,
char *  status,
float *  error,
CvTermCriteria  criteria,
int  flags 
)

static CvStatus mycvGetRectSubPix_8u32f_C1R ( const uchar *  src,
int  src_step,
CvSize  src_size,
float *  dst,
int  dst_step,
CvSize  win_size,
CvPoint2D32f  center 
) [static]

Definition at line 370 of file mylkpyramid.cpp.

References CV_8TO32F, and icvAdjustRect().

Referenced by myCalcOpticalFlowPyrLK().


Variable Documentation

const float icv8x32fTab_cv[] [static]

Definition at line 209 of file mylkpyramid.cpp.


Generated on Tue Mar 30 15:53:23 2010 for Polyora by  doxygen 1.5.9