Expand description
§Video Stabilization
The video stabilization module contains a set of functions and classes that can be used to solve the problem of video stabilization. There are a few methods implemented, most of them are described in the papers OF06 and G11 . However, there are some extensions and deviations from the original paper methods.
§References
-
“Full-Frame Video Stabilization with Motion Inpainting” Yasuyuki Matsushita, Eyal Ofek, Weina Ge, Xiaoou Tang, Senior Member, and Heung-Yeung Shum
-
“Auto-Directed Video Stabilization with Robust L1 Optimal Camera Paths” Matthias Grundmann, Vivek Kwatra, Irfan Essa
§Global Motion Estimation
The video stabilization module contains a set of functions and classes for global motion estimation between point clouds or between images. In the last case features are extracted and matched internally. For the sake of convenience the motion estimation functions are wrapped into classes. Both the functions and the classes are available.
§Fast Marching Method
The Fast Marching Method Telea04 is used in of the video stabilization routines to do motion and color inpainting. The method is implemented is a flexible way and it’s made public for other users.
Modules§
Structs§
- Color
Average Inpainter - Color
Inpainter - Consistent
Mosaic Inpainter - Deblurer
Base - Dense
PyrLk OptFlow Estimator Gpu - Fast
Marching Method - Describes the Fast Marching Method implementation.
- From
File Motion Reader - Gaussian
Motion Filter - IDense
OptFlow Estimator - IFrame
Source - ILog
- IMotion
Stabilizer - IOutlier
Rejector - ISparse
OptFlow Estimator - Image
Motion Estimator Base - Base class for global 2D motion estimation methods which take frames as input.
- Inpainter
Base - Inpainting
Pipeline - Keypoint
Based Motion Estimator - Describes a global 2D motion estimation method which uses keypoints detection and optical flow for matching.
- Keypoint
Based Motion Estimator Gpu - LogTo
Stdout - LpMotion
Stabilizer - Mask
Frame Source - More
Accurate Motion Wobble Suppressor - More
Accurate Motion Wobble Suppressor Base - More
Accurate Motion Wobble Suppressor Gpu - Motion
Estimator Base - Base class for all global motion estimation methods.
- Motion
Estimator L1 - Describes a global 2D motion estimation method which minimizes L1 error.
- Motion
Estimator Ransac L2 - Describes a robust RANSAC-based global 2D motion estimation method which minimizes L2 error.
- Motion
Filter Base - Motion
Inpainter - Motion
Stabilization Pipeline - Null
Deblurer - Null
Frame Source - Null
Inpainter - NullLog
- Null
Outlier Rejector - Null
Wobble Suppressor - OnePass
Stabilizer - PyrLk
OptFlow Estimator Base - Ransac
Params - Describes RANSAC method parameters.
- Sparse
PyrLk OptFlow Estimator - Sparse
PyrLk OptFlow Estimator Gpu - Stabilizer
Base - ToFile
Motion Writer - Translation
Based Local Outlier Rejector - TwoPass
Stabilizer - Video
File Source - Weighting
Deblurer - Wobble
Suppressor Base
Enums§
- Motion
Model - Describes motion model between two point clouds.
Constants§
- MM_
AFFINE - MM_
HOMOGRAPHY - MM_
RIGID - MM_
ROTATION - MM_
SIMILARITY - MM_
TRANSLATION - MM_
TRANSLATION_ AND_ SCALE - MM_
UNKNOWN
Traits§
- Color
Average Inpainter Trait - Mutable methods for crate::videostab::ColorAverageInpainter
- Color
Average Inpainter Trait Const - Constant methods for crate::videostab::ColorAverageInpainter
- Color
Inpainter Trait - Mutable methods for crate::videostab::ColorInpainter
- Color
Inpainter Trait Const - Constant methods for crate::videostab::ColorInpainter
- Consistent
Mosaic Inpainter Trait - Mutable methods for crate::videostab::ConsistentMosaicInpainter
- Consistent
Mosaic Inpainter Trait Const - Constant methods for crate::videostab::ConsistentMosaicInpainter
- Deblurer
Base Trait - Mutable methods for crate::videostab::DeblurerBase
- Deblurer
Base Trait Const - Constant methods for crate::videostab::DeblurerBase
- Dense
PyrLk OptFlow Estimator GpuTrait - Mutable methods for crate::videostab::DensePyrLkOptFlowEstimatorGpu
- Dense
PyrLk OptFlow Estimator GpuTrait Const - Constant methods for crate::videostab::DensePyrLkOptFlowEstimatorGpu
- Fast
Marching Method Trait - Mutable methods for crate::videostab::FastMarchingMethod
- Fast
Marching Method Trait Const - Constant methods for crate::videostab::FastMarchingMethod
- From
File Motion Reader Trait - Mutable methods for crate::videostab::FromFileMotionReader
- From
File Motion Reader Trait Const - Constant methods for crate::videostab::FromFileMotionReader
- Gaussian
Motion Filter Trait - Mutable methods for crate::videostab::GaussianMotionFilter
- Gaussian
Motion Filter Trait Const - Constant methods for crate::videostab::GaussianMotionFilter
- IDense
OptFlow Estimator Trait - Mutable methods for crate::videostab::IDenseOptFlowEstimator
- IDense
OptFlow Estimator Trait Const - Constant methods for crate::videostab::IDenseOptFlowEstimator
- IFrame
Source Trait - Mutable methods for crate::videostab::IFrameSource
- IFrame
Source Trait Const - Constant methods for crate::videostab::IFrameSource
- ILog
Trait - Mutable methods for crate::videostab::ILog
- ILog
Trait Const - Constant methods for crate::videostab::ILog
- IMotion
Stabilizer Trait - Mutable methods for crate::videostab::IMotionStabilizer
- IMotion
Stabilizer Trait Const - Constant methods for crate::videostab::IMotionStabilizer
- IOutlier
Rejector Trait - Mutable methods for crate::videostab::IOutlierRejector
- IOutlier
Rejector Trait Const - Constant methods for crate::videostab::IOutlierRejector
- ISparse
OptFlow Estimator Trait - Mutable methods for crate::videostab::ISparseOptFlowEstimator
- ISparse
OptFlow Estimator Trait Const - Constant methods for crate::videostab::ISparseOptFlowEstimator
- Image
Motion Estimator Base Trait - Mutable methods for crate::videostab::ImageMotionEstimatorBase
- Image
Motion Estimator Base Trait Const - Constant methods for crate::videostab::ImageMotionEstimatorBase
- Inpainter
Base Trait - Mutable methods for crate::videostab::InpainterBase
- Inpainter
Base Trait Const - Constant methods for crate::videostab::InpainterBase
- Inpainting
Pipeline Trait - Mutable methods for crate::videostab::InpaintingPipeline
- Inpainting
Pipeline Trait Const - Constant methods for crate::videostab::InpaintingPipeline
- Keypoint
Based Motion Estimator GpuTrait - Mutable methods for crate::videostab::KeypointBasedMotionEstimatorGpu
- Keypoint
Based Motion Estimator GpuTrait Const - Constant methods for crate::videostab::KeypointBasedMotionEstimatorGpu
- Keypoint
Based Motion Estimator Trait - Mutable methods for crate::videostab::KeypointBasedMotionEstimator
- Keypoint
Based Motion Estimator Trait Const - Constant methods for crate::videostab::KeypointBasedMotionEstimator
- LogTo
Stdout Trait - Mutable methods for crate::videostab::LogToStdout
- LogTo
Stdout Trait Const - Constant methods for crate::videostab::LogToStdout
- LpMotion
Stabilizer Trait - Mutable methods for crate::videostab::LpMotionStabilizer
- LpMotion
Stabilizer Trait Const - Constant methods for crate::videostab::LpMotionStabilizer
- Mask
Frame Source Trait - Mutable methods for crate::videostab::MaskFrameSource
- Mask
Frame Source Trait Const - Constant methods for crate::videostab::MaskFrameSource
- More
Accurate Motion Wobble Suppressor Base Trait - Mutable methods for crate::videostab::MoreAccurateMotionWobbleSuppressorBase
- More
Accurate Motion Wobble Suppressor Base Trait Const - Constant methods for crate::videostab::MoreAccurateMotionWobbleSuppressorBase
- More
Accurate Motion Wobble Suppressor GpuTrait - Mutable methods for crate::videostab::MoreAccurateMotionWobbleSuppressorGpu
- More
Accurate Motion Wobble Suppressor GpuTrait Const - Constant methods for crate::videostab::MoreAccurateMotionWobbleSuppressorGpu
- More
Accurate Motion Wobble Suppressor Trait - Mutable methods for crate::videostab::MoreAccurateMotionWobbleSuppressor
- More
Accurate Motion Wobble Suppressor Trait Const - Constant methods for crate::videostab::MoreAccurateMotionWobbleSuppressor
- Motion
Estimator Base Trait - Mutable methods for crate::videostab::MotionEstimatorBase
- Motion
Estimator Base Trait Const - Constant methods for crate::videostab::MotionEstimatorBase
- Motion
Estimator L1Trait - Mutable methods for crate::videostab::MotionEstimatorL1
- Motion
Estimator L1Trait Const - Constant methods for crate::videostab::MotionEstimatorL1
- Motion
Estimator Ransac L2Trait - Mutable methods for crate::videostab::MotionEstimatorRansacL2
- Motion
Estimator Ransac L2Trait Const - Constant methods for crate::videostab::MotionEstimatorRansacL2
- Motion
Filter Base Trait - Mutable methods for crate::videostab::MotionFilterBase
- Motion
Filter Base Trait Const - Constant methods for crate::videostab::MotionFilterBase
- Motion
Inpainter Trait - Mutable methods for crate::videostab::MotionInpainter
- Motion
Inpainter Trait Const - Constant methods for crate::videostab::MotionInpainter
- Motion
Stabilization Pipeline Trait - Mutable methods for crate::videostab::MotionStabilizationPipeline
- Motion
Stabilization Pipeline Trait Const - Constant methods for crate::videostab::MotionStabilizationPipeline
- Null
Deblurer Trait - Mutable methods for crate::videostab::NullDeblurer
- Null
Deblurer Trait Const - Constant methods for crate::videostab::NullDeblurer
- Null
Frame Source Trait - Mutable methods for crate::videostab::NullFrameSource
- Null
Frame Source Trait Const - Constant methods for crate::videostab::NullFrameSource
- Null
Inpainter Trait - Mutable methods for crate::videostab::NullInpainter
- Null
Inpainter Trait Const - Constant methods for crate::videostab::NullInpainter
- Null
LogTrait - Mutable methods for crate::videostab::NullLog
- Null
LogTrait Const - Constant methods for crate::videostab::NullLog
- Null
Outlier Rejector Trait - Mutable methods for crate::videostab::NullOutlierRejector
- Null
Outlier Rejector Trait Const - Constant methods for crate::videostab::NullOutlierRejector
- Null
Wobble Suppressor Trait - Mutable methods for crate::videostab::NullWobbleSuppressor
- Null
Wobble Suppressor Trait Const - Constant methods for crate::videostab::NullWobbleSuppressor
- OnePass
Stabilizer Trait - Mutable methods for crate::videostab::OnePassStabilizer
- OnePass
Stabilizer Trait Const - Constant methods for crate::videostab::OnePassStabilizer
- PyrLk
OptFlow Estimator Base Trait - Mutable methods for crate::videostab::PyrLkOptFlowEstimatorBase
- PyrLk
OptFlow Estimator Base Trait Const - Constant methods for crate::videostab::PyrLkOptFlowEstimatorBase
- Ransac
Params Trait - Mutable methods for crate::videostab::RansacParams
- Ransac
Params Trait Const - Constant methods for crate::videostab::RansacParams
- Sparse
PyrLk OptFlow Estimator GpuTrait - Mutable methods for crate::videostab::SparsePyrLkOptFlowEstimatorGpu
- Sparse
PyrLk OptFlow Estimator GpuTrait Const - Constant methods for crate::videostab::SparsePyrLkOptFlowEstimatorGpu
- Sparse
PyrLk OptFlow Estimator Trait - Mutable methods for crate::videostab::SparsePyrLkOptFlowEstimator
- Sparse
PyrLk OptFlow Estimator Trait Const - Constant methods for crate::videostab::SparsePyrLkOptFlowEstimator
- Stabilizer
Base Trait - Mutable methods for crate::videostab::StabilizerBase
- Stabilizer
Base Trait Const - Constant methods for crate::videostab::StabilizerBase
- ToFile
Motion Writer Trait - Mutable methods for crate::videostab::ToFileMotionWriter
- ToFile
Motion Writer Trait Const - Constant methods for crate::videostab::ToFileMotionWriter
- Translation
Based Local Outlier Rejector Trait - Mutable methods for crate::videostab::TranslationBasedLocalOutlierRejector
- Translation
Based Local Outlier Rejector Trait Const - Constant methods for crate::videostab::TranslationBasedLocalOutlierRejector
- TwoPass
Stabilizer Trait - Mutable methods for crate::videostab::TwoPassStabilizer
- TwoPass
Stabilizer Trait Const - Constant methods for crate::videostab::TwoPassStabilizer
- Video
File Source Trait - Mutable methods for crate::videostab::VideoFileSource
- Video
File Source Trait Const - Constant methods for crate::videostab::VideoFileSource
- Weighting
Deblurer Trait - Mutable methods for crate::videostab::WeightingDeblurer
- Weighting
Deblurer Trait Const - Constant methods for crate::videostab::WeightingDeblurer
- Wobble
Suppressor Base Trait - Mutable methods for crate::videostab::WobbleSuppressorBase
- Wobble
Suppressor Base Trait Const - Constant methods for crate::videostab::WobbleSuppressorBase
Functions§
- calc_
blurriness - calc_
flow_ mask - complete_
frame_ according_ to_ flow - ensure_
inclusion_ constraint - estimate_
global_ motion_ least_ squares - Estimates best global motion between two 2D point clouds in the least-squares sense.
- estimate_
global_ motion_ least_ squares_ def - Estimates best global motion between two 2D point clouds in the least-squares sense.
- estimate_
global_ motion_ ransac - Estimates best global motion between two 2D point clouds robustly (using RANSAC method).
- estimate_
global_ motion_ ransac_ def - Estimates best global motion between two 2D point clouds robustly (using RANSAC method).
- estimate_
optimal_ trim_ ratio - get_
motion - Computes motion between two frames assuming that all the intermediate motions are known.