OpenCV  2.4.13.4
Open Source Computer Vision
tracking.hpp File Reference

The Object and Feature Tracking. More...

Classes

struct  CvKalman
 
class  cv::KalmanFilter
 
class  cv::DenseOpticalFlow
 

Namespaces

 cv
 

Macros

#define CV_LKFLOW_PYR_A_READY   1
 
#define CV_LKFLOW_PYR_B_READY   2
 
#define CV_LKFLOW_INITIAL_GUESSES   4
 
#define CV_LKFLOW_GET_MIN_EIGENVALS   8
 
#define cvKalmanUpdateByTime   cvKalmanPredict
 
#define cvKalmanUpdateByMeasurement   cvKalmanCorrect
 

Enumerations

enum  { cv::OPTFLOW_USE_INITIAL_FLOW = 4, cv::OPTFLOW_LK_GET_MIN_EIGENVALS = 8, cv::OPTFLOW_FARNEBACK_GAUSSIAN = 256 }
 

Functions

void cvCalcOpticalFlowPyrLK (const CvArr *prev, const CvArr *curr, CvArr *prev_pyr, CvArr *curr_pyr, const CvPoint2D32f *prev_features, CvPoint2D32f *curr_features, int count, CvSize win_size, int level, char *status, float *track_error, CvTermCriteria criteria, int flags)
 
void cvCalcAffineFlowPyrLK (const CvArr *prev, const CvArr *curr, CvArr *prev_pyr, CvArr *curr_pyr, const CvPoint2D32f *prev_features, CvPoint2D32f *curr_features, float *matrices, int count, CvSize win_size, int level, char *status, float *track_error, CvTermCriteria criteria, int flags)
 
int cvEstimateRigidTransform (const CvArr *A, const CvArr *B, CvMat *M, int full_affine)
 
void cvCalcOpticalFlowFarneback (const CvArr *prev, const CvArr *next, CvArr *flow, double pyr_scale, int levels, int winsize, int iterations, int poly_n, double poly_sigma, int flags)
 
void cvUpdateMotionHistory (const CvArr *silhouette, CvArr *mhi, double timestamp, double duration)
 
void cvCalcMotionGradient (const CvArr *mhi, CvArr *mask, CvArr *orientation, double delta1, double delta2, int aperture_size CV_DEFAULT(3))
 
double cvCalcGlobalOrientation (const CvArr *orientation, const CvArr *mask, const CvArr *mhi, double timestamp, double duration)
 
CvSeqcvSegmentMotion (const CvArr *mhi, CvArr *seg_mask, CvMemStorage *storage, double timestamp, double seg_thresh)
 
int cvCamShift (const CvArr *prob_image, CvRect window, CvTermCriteria criteria, CvConnectedComp *comp, CvBox2D *box CV_DEFAULT(NULL))
 
int cvMeanShift (const CvArr *prob_image, CvRect window, CvTermCriteria criteria, CvConnectedComp *comp)
 
CvKalmancvCreateKalman (int dynam_params, int measure_params, int control_params CV_DEFAULT(0))
 
void cvReleaseKalman (CvKalman **kalman)
 
const CvMatcvKalmanPredict (CvKalman *kalman, const CvMat *control CV_DEFAULT(NULL))
 
const CvMatcvKalmanCorrect (CvKalman *kalman, const CvMat *measurement)
 
void cv::updateMotionHistory (InputArray silhouette, InputOutputArray mhi, double timestamp, double duration)
 updates motion history image using the current silhouette More...
 
void cv::calcMotionGradient (InputArray mhi, OutputArray mask, OutputArray orientation, double delta1, double delta2, int apertureSize=3)
 computes the motion gradient orientation image from the motion history image More...
 
double cv::calcGlobalOrientation (InputArray orientation, InputArray mask, InputArray mhi, double timestamp, double duration)
 computes the global orientation of the selected motion history image part More...
 
void cv::segmentMotion (InputArray mhi, OutputArray segmask, CV_OUT vector< Rect > &boundingRects, double timestamp, double segThresh)
 
RotatedRect cv::CamShift (InputArray probImage, CV_OUT CV_IN_OUT Rect &window, TermCriteria criteria)
 updates the object tracking window using CAMSHIFT algorithm More...
 
int cv::meanShift (InputArray probImage, CV_OUT CV_IN_OUT Rect &window, TermCriteria criteria)
 updates the object tracking window using meanshift algorithm More...
 
int cv::buildOpticalFlowPyramid (InputArray img, OutputArrayOfArrays pyramid, Size winSize, int maxLevel, bool withDerivatives=true, int pyrBorder=BORDER_REFLECT_101, int derivBorder=BORDER_CONSTANT, bool tryReuseInputImage=true)
 constructs a pyramid which can be used as input for calcOpticalFlowPyrLK More...
 
void cv::calcOpticalFlowPyrLK (InputArray prevImg, InputArray nextImg, InputArray prevPts, CV_OUT InputOutputArray nextPts, OutputArray status, OutputArray err, Size winSize=Size(21, 21), int maxLevel=3, TermCriteria criteria=TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, 0.01), int flags=0, double minEigThreshold=1e-4)
 computes sparse optical flow using multi-scale Lucas-Kanade algorithm More...
 
void cv::calcOpticalFlowFarneback (InputArray prev, InputArray next, CV_OUT InputOutputArray flow, double pyr_scale, int levels, int winsize, int iterations, int poly_n, double poly_sigma, int flags)
 computes dense optical flow using Farneback algorithm More...
 
Mat cv::estimateRigidTransform (InputArray src, InputArray dst, bool fullAffine)
 estimates the best-fit Euqcidean, similarity, affine or perspective transformation More...
 
void cv::calcOpticalFlowSF (Mat &from, Mat &to, Mat &flow, int layers, int averaging_block_size, int max_flow)
 computes dense optical flow using Simple Flow algorithm More...
 
void cv::calcOpticalFlowSF (Mat &from, Mat &to, Mat &flow, int layers, int averaging_block_size, int max_flow, double sigma_dist, double sigma_color, int postprocess_window, double sigma_dist_fix, double sigma_color_fix, double occ_thr, int upscale_averaging_radius, double upscale_sigma_dist, double upscale_sigma_color, double speed_up_thr)
 
Ptr< DenseOpticalFlow > cv::createOptFlow_DualTVL1 ()
 

Detailed Description

The Object and Feature Tracking.

Macro Definition Documentation

§ CV_LKFLOW_GET_MIN_EIGENVALS

#define CV_LKFLOW_GET_MIN_EIGENVALS   8

§ CV_LKFLOW_INITIAL_GUESSES

#define CV_LKFLOW_INITIAL_GUESSES   4

§ CV_LKFLOW_PYR_A_READY

#define CV_LKFLOW_PYR_A_READY   1

§ CV_LKFLOW_PYR_B_READY

#define CV_LKFLOW_PYR_B_READY   2

§ cvKalmanUpdateByMeasurement

#define cvKalmanUpdateByMeasurement   cvKalmanCorrect

§ cvKalmanUpdateByTime

#define cvKalmanUpdateByTime   cvKalmanPredict

Function Documentation

§ cvCalcAffineFlowPyrLK()

void cvCalcAffineFlowPyrLK ( const CvArr prev,
const CvArr curr,
CvArr prev_pyr,
CvArr curr_pyr,
const CvPoint2D32f prev_features,
CvPoint2D32f curr_features,
float *  matrices,
int  count,
CvSize  win_size,
int  level,
char *  status,
float *  track_error,
CvTermCriteria  criteria,
int  flags 
)

§ cvCalcGlobalOrientation()

double cvCalcGlobalOrientation ( const CvArr orientation,
const CvArr mask,
const CvArr mhi,
double  timestamp,
double  duration 
)

§ cvCalcMotionGradient()

void cvCalcMotionGradient ( const CvArr mhi,
CvArr mask,
CvArr orientation,
double  delta1,
double  delta2,
int aperture_size   CV_DEFAULT
)

§ cvCalcOpticalFlowFarneback()

void cvCalcOpticalFlowFarneback ( const CvArr prev,
const CvArr next,
CvArr flow,
double  pyr_scale,
int  levels,
int  winsize,
int  iterations,
int  poly_n,
double  poly_sigma,
int  flags 
)

§ cvCalcOpticalFlowPyrLK()

void cvCalcOpticalFlowPyrLK ( const CvArr prev,
const CvArr curr,
CvArr prev_pyr,
CvArr curr_pyr,
const CvPoint2D32f prev_features,
CvPoint2D32f curr_features,
int  count,
CvSize  win_size,
int  level,
char *  status,
float *  track_error,
CvTermCriteria  criteria,
int  flags 
)

§ cvCamShift()

int cvCamShift ( const CvArr prob_image,
CvRect  window,
CvTermCriteria  criteria,
CvConnectedComp comp,
CvBox2D *box   CV_DEFAULTNULL 
)

§ cvCreateKalman()

CvKalman* cvCreateKalman ( int  dynam_params,
int  measure_params,
int control_params   CV_DEFAULT
)

§ cvEstimateRigidTransform()

int cvEstimateRigidTransform ( const CvArr A,
const CvArr B,
CvMat M,
int  full_affine 
)

§ cvKalmanCorrect()

const CvMat* cvKalmanCorrect ( CvKalman kalman,
const CvMat measurement 
)

§ cvKalmanPredict()

const CvMat* cvKalmanPredict ( CvKalman kalman,
const CvMat *control   CV_DEFAULTNULL 
)

§ cvMeanShift()

int cvMeanShift ( const CvArr prob_image,
CvRect  window,
CvTermCriteria  criteria,
CvConnectedComp comp 
)

§ cvReleaseKalman()

void cvReleaseKalman ( CvKalman **  kalman)

§ cvSegmentMotion()

CvSeq* cvSegmentMotion ( const CvArr mhi,
CvArr seg_mask,
CvMemStorage storage,
double  timestamp,
double  seg_thresh 
)

§ cvUpdateMotionHistory()

void cvUpdateMotionHistory ( const CvArr silhouette,
CvArr mhi,
double  timestamp,
double  duration 
)