| setMotionEstimator (cv.TwoPassStabilizer) - MATLAB File Help |
Set the motion estimating algorithm for the video stabilizer
stab.setMotionEstimator(motionEstType, ...)
stab.setMotionEstimator('KeypointBasedMotionEstimator', {estType, ...}, 'OptionName',optionValue, ...)
stab.setMotionEstimator('FromFileMotionReader', path, 'OptionName',optionValue, ...)
stab.setMotionEstimator('ToFileMotionWriter', path, {motionEstType, ...}, 'OptionName',optionValue, ...)
The following are options for the various algorithms:
KeypointBasedMotionEstimator, FromFileMotionReader, ToFileMotionWriterKeypointBasedMotionEstimator{detectorType, 'OptionName',optionValue, ...}. See
cv.FeatureDetector.FeatureDetector for a list of supported
feature detectors. Default is {'GFTTDetector'}.{optflowType, 'OptionName',optionValue, ...},
where optflowType is one of:
{rejectorType, 'OptionName',optionValue, ...}, where
rejectorType is one of:
MotionEstimatorL1 and MotionEstimatorRansacL2MotionEstimatorRansacL2MinInlierRatio default 0.1
RansacParams Describes RANSAC method parameters. A struct with the following fields:
If a string is passed, it uses the default RANSAC parameters for the given motion model. Here are the defaults corresponding to each motion model:
struct('Size',1, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)struct('Size',2, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)struct('Size',1, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)struct('Size',2, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)struct('Size',2, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)struct('Size',3, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)struct('Size',4, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)By default is it set to 'Affine'.
SparsePyrLkOptFlowEstimatorTranslationBasedLocalOutlierRejectorCellSize default [50,50]
RansacParams Describes RANSAC method parameters. A struct with the following fields:
If a string is passed, it uses the default RANSAC parameters for the given motion model. Here are the defaults corresponding to each motion model:
struct('Size',1, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)struct('Size',2, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)struct('Size',1, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)struct('Size',2, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)struct('Size',2, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)struct('Size',3, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)struct('Size',4, 'Thresh',0.5, 'Eps',0.5, 'Prob',0.99)By default is it set to 'Translation'.
The class uses KeypointBasedMotionEstimator by default with
MotionEstimatorRansacL2.
| Access | public |
| Sealed | false |
| Static | false |