Class ECCParameters

java.lang.Object
org.opencv.video.ECCParameters

public class ECCParameters extends Object
struct ECCParameters is used by findTransformECCMultiScale motionType parameter, 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\). criteria parameter, 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. itersPerLevel Criterion extension: distribution of iterations limit over pyramid levels. Can be empty, in this case, this algorithm will use criteria.maxCount on each level. gaussFiltSize An optional value indicating size of gaussian blur filter; (DEFAULT: 5) nlevels An optional value indicating amount of levels in the pyramid; (DEFAULT: 4) interpolation Type of warp interpolation. Possible values are INTER_NEAREST and INTER_LINEAR. Affects accuracy, especially when motionType == MOTION_TRANSLATION. (DEFAULT: INTER_LINEAR)
  • Field Details

    • nativeObj

      protected final long nativeObj
  • Constructor Details

    • ECCParameters

      protected ECCParameters(long addr)
    • ECCParameters

      public ECCParameters()
  • Method Details

    • getNativeObjAddr

      public long getNativeObjAddr()
    • __fromPtr__

      public static ECCParameters __fromPtr__(long addr)
    • get_motionType

      public int get_motionType()
    • set_motionType

      public void set_motionType(int motionType)
    • get_criteria

      public TermCriteria get_criteria()
    • set_criteria

      public void set_criteria(TermCriteria criteria)
    • get_itersPerLevel

      public MatOfInt get_itersPerLevel()
    • set_itersPerLevel

      public void set_itersPerLevel(MatOfInt itersPerLevel)
    • get_gaussFiltSize

      public int get_gaussFiltSize()
    • set_gaussFiltSize

      public void set_gaussFiltSize(int gaussFiltSize)
    • get_nlevels

      public int get_nlevels()
    • set_nlevels

      public void set_nlevels(int nlevels)
    • get_interpolation

      public int get_interpolation()
    • set_interpolation

      public void set_interpolation(int interpolation)