OpenCV 5.0.0
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::ECCParameters Struct Reference

struct ECCParameters is used by findTransformECCMultiScale More...

#include <opencv2/video/tracking.hpp>

Public Member Functions

 ECCParameters ()

Public Attributes

cv::TermCriteria criteria
int gaussFiltSize = 5
int interpolation = INTER_LINEAR
std::vector< int > itersPerLevel
int motionType = MOTION_AFFINE
int nlevels = 4

Detailed Description

struct ECCParameters is used by findTransformECCMultiScale

Parameters
motionTypeparameter, specifying the type of motion:
  • MOTION_TRANSLATION sets a translational motion model; warpMatrix is \(2\times 3\) with the first \(2\times 2\) part being the unity matrix and the rest two parameters being estimated.
  • MOTION_EUCLIDEAN sets a Euclidean (rigid) transformation as motion model; three parameters are estimated; warpMatrix is \(2\times 3\).
  • MOTION_AFFINE sets an affine motion model (DEFAULT); six parameters are estimated; warpMatrix is \(2\times 3\).
  • MOTION_HOMOGRAPHY sets a homography as a motion model; eight parameters are estimated;`warpMatrix` is \(3\times 3\).
criteriaparameter, specifying the termination criteria of the ECC algorithm; criteria.epsilon defines the threshold of the increment in the correlation coefficient between two iterations (a negative criteria.epsilon makes criteria.maxcount the only termination criterion). Default values are shown in the declaration above.
itersPerLevelCriterion extension: distribution of iterations limit over pyramid levels. Can be empty, in this case, this algorithm will use criteria.maxCount on each level.
gaussFiltSizeAn optional value indicating size of gaussian blur filter; (DEFAULT: 5)
nlevelsAn optional value indicating amount of levels in the pyramid; (DEFAULT: 4)
interpolationType of warp interpolation. Possible values are INTER_NEAREST and INTER_LINEAR. Affects accuracy, especially when motionType == MOTION_TRANSLATION. (DEFAULT: INTER_LINEAR)

Constructor & Destructor Documentation

◆ ECCParameters()

cv::ECCParameters::ECCParameters ( )

Member Data Documentation

◆ criteria

cv::TermCriteria cv::ECCParameters::criteria

◆ gaussFiltSize

int cv::ECCParameters::gaussFiltSize = 5

◆ interpolation

int cv::ECCParameters::interpolation = INTER_LINEAR

◆ itersPerLevel

std::vector<int> cv::ECCParameters::itersPerLevel

◆ motionType

int cv::ECCParameters::motionType = MOTION_AFFINE

◆ nlevels

int cv::ECCParameters::nlevels = 4

The documentation for this struct was generated from the following file: