Module videostab

Source
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

  1. “Full-Frame Video Stabilization with Motion Inpainting” Yasuyuki Matsushita, Eyal Ofek, Weina Ge, Xiaoou Tang, Senior Member, and Heung-Yeung Shum

  2. “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§

prelude

Structs§

ColorAverageInpainter
ColorInpainter
ConsistentMosaicInpainter
DeblurerBase
DensePyrLkOptFlowEstimatorGpu
FastMarchingMethod
Describes the Fast Marching Method implementation.
FromFileMotionReader
GaussianMotionFilter
IDenseOptFlowEstimator
IFrameSource
ILog
IMotionStabilizer
IOutlierRejector
ISparseOptFlowEstimator
ImageMotionEstimatorBase
Base class for global 2D motion estimation methods which take frames as input.
InpainterBase
InpaintingPipeline
KeypointBasedMotionEstimator
Describes a global 2D motion estimation method which uses keypoints detection and optical flow for matching.
KeypointBasedMotionEstimatorGpu
LogToStdout
LpMotionStabilizer
MaskFrameSource
MoreAccurateMotionWobbleSuppressor
MoreAccurateMotionWobbleSuppressorBase
MoreAccurateMotionWobbleSuppressorGpu
MotionEstimatorBase
Base class for all global motion estimation methods.
MotionEstimatorL1
Describes a global 2D motion estimation method which minimizes L1 error.
MotionEstimatorRansacL2
Describes a robust RANSAC-based global 2D motion estimation method which minimizes L2 error.
MotionFilterBase
MotionInpainter
MotionStabilizationPipeline
NullDeblurer
NullFrameSource
NullInpainter
NullLog
NullOutlierRejector
NullWobbleSuppressor
OnePassStabilizer
PyrLkOptFlowEstimatorBase
RansacParams
Describes RANSAC method parameters.
SparsePyrLkOptFlowEstimator
SparsePyrLkOptFlowEstimatorGpu
StabilizerBase
ToFileMotionWriter
TranslationBasedLocalOutlierRejector
TwoPassStabilizer
VideoFileSource
WeightingDeblurer
WobbleSuppressorBase

Enums§

MotionModel
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§

ColorAverageInpainterTrait
Mutable methods for crate::videostab::ColorAverageInpainter
ColorAverageInpainterTraitConst
Constant methods for crate::videostab::ColorAverageInpainter
ColorInpainterTrait
Mutable methods for crate::videostab::ColorInpainter
ColorInpainterTraitConst
Constant methods for crate::videostab::ColorInpainter
ConsistentMosaicInpainterTrait
Mutable methods for crate::videostab::ConsistentMosaicInpainter
ConsistentMosaicInpainterTraitConst
Constant methods for crate::videostab::ConsistentMosaicInpainter
DeblurerBaseTrait
Mutable methods for crate::videostab::DeblurerBase
DeblurerBaseTraitConst
Constant methods for crate::videostab::DeblurerBase
DensePyrLkOptFlowEstimatorGpuTrait
Mutable methods for crate::videostab::DensePyrLkOptFlowEstimatorGpu
DensePyrLkOptFlowEstimatorGpuTraitConst
Constant methods for crate::videostab::DensePyrLkOptFlowEstimatorGpu
FastMarchingMethodTrait
Mutable methods for crate::videostab::FastMarchingMethod
FastMarchingMethodTraitConst
Constant methods for crate::videostab::FastMarchingMethod
FromFileMotionReaderTrait
Mutable methods for crate::videostab::FromFileMotionReader
FromFileMotionReaderTraitConst
Constant methods for crate::videostab::FromFileMotionReader
GaussianMotionFilterTrait
Mutable methods for crate::videostab::GaussianMotionFilter
GaussianMotionFilterTraitConst
Constant methods for crate::videostab::GaussianMotionFilter
IDenseOptFlowEstimatorTrait
Mutable methods for crate::videostab::IDenseOptFlowEstimator
IDenseOptFlowEstimatorTraitConst
Constant methods for crate::videostab::IDenseOptFlowEstimator
IFrameSourceTrait
Mutable methods for crate::videostab::IFrameSource
IFrameSourceTraitConst
Constant methods for crate::videostab::IFrameSource
ILogTrait
Mutable methods for crate::videostab::ILog
ILogTraitConst
Constant methods for crate::videostab::ILog
IMotionStabilizerTrait
Mutable methods for crate::videostab::IMotionStabilizer
IMotionStabilizerTraitConst
Constant methods for crate::videostab::IMotionStabilizer
IOutlierRejectorTrait
Mutable methods for crate::videostab::IOutlierRejector
IOutlierRejectorTraitConst
Constant methods for crate::videostab::IOutlierRejector
ISparseOptFlowEstimatorTrait
Mutable methods for crate::videostab::ISparseOptFlowEstimator
ISparseOptFlowEstimatorTraitConst
Constant methods for crate::videostab::ISparseOptFlowEstimator
ImageMotionEstimatorBaseTrait
Mutable methods for crate::videostab::ImageMotionEstimatorBase
ImageMotionEstimatorBaseTraitConst
Constant methods for crate::videostab::ImageMotionEstimatorBase
InpainterBaseTrait
Mutable methods for crate::videostab::InpainterBase
InpainterBaseTraitConst
Constant methods for crate::videostab::InpainterBase
InpaintingPipelineTrait
Mutable methods for crate::videostab::InpaintingPipeline
InpaintingPipelineTraitConst
Constant methods for crate::videostab::InpaintingPipeline
KeypointBasedMotionEstimatorGpuTrait
Mutable methods for crate::videostab::KeypointBasedMotionEstimatorGpu
KeypointBasedMotionEstimatorGpuTraitConst
Constant methods for crate::videostab::KeypointBasedMotionEstimatorGpu
KeypointBasedMotionEstimatorTrait
Mutable methods for crate::videostab::KeypointBasedMotionEstimator
KeypointBasedMotionEstimatorTraitConst
Constant methods for crate::videostab::KeypointBasedMotionEstimator
LogToStdoutTrait
Mutable methods for crate::videostab::LogToStdout
LogToStdoutTraitConst
Constant methods for crate::videostab::LogToStdout
LpMotionStabilizerTrait
Mutable methods for crate::videostab::LpMotionStabilizer
LpMotionStabilizerTraitConst
Constant methods for crate::videostab::LpMotionStabilizer
MaskFrameSourceTrait
Mutable methods for crate::videostab::MaskFrameSource
MaskFrameSourceTraitConst
Constant methods for crate::videostab::MaskFrameSource
MoreAccurateMotionWobbleSuppressorBaseTrait
Mutable methods for crate::videostab::MoreAccurateMotionWobbleSuppressorBase
MoreAccurateMotionWobbleSuppressorBaseTraitConst
Constant methods for crate::videostab::MoreAccurateMotionWobbleSuppressorBase
MoreAccurateMotionWobbleSuppressorGpuTrait
Mutable methods for crate::videostab::MoreAccurateMotionWobbleSuppressorGpu
MoreAccurateMotionWobbleSuppressorGpuTraitConst
Constant methods for crate::videostab::MoreAccurateMotionWobbleSuppressorGpu
MoreAccurateMotionWobbleSuppressorTrait
Mutable methods for crate::videostab::MoreAccurateMotionWobbleSuppressor
MoreAccurateMotionWobbleSuppressorTraitConst
Constant methods for crate::videostab::MoreAccurateMotionWobbleSuppressor
MotionEstimatorBaseTrait
Mutable methods for crate::videostab::MotionEstimatorBase
MotionEstimatorBaseTraitConst
Constant methods for crate::videostab::MotionEstimatorBase
MotionEstimatorL1Trait
Mutable methods for crate::videostab::MotionEstimatorL1
MotionEstimatorL1TraitConst
Constant methods for crate::videostab::MotionEstimatorL1
MotionEstimatorRansacL2Trait
Mutable methods for crate::videostab::MotionEstimatorRansacL2
MotionEstimatorRansacL2TraitConst
Constant methods for crate::videostab::MotionEstimatorRansacL2
MotionFilterBaseTrait
Mutable methods for crate::videostab::MotionFilterBase
MotionFilterBaseTraitConst
Constant methods for crate::videostab::MotionFilterBase
MotionInpainterTrait
Mutable methods for crate::videostab::MotionInpainter
MotionInpainterTraitConst
Constant methods for crate::videostab::MotionInpainter
MotionStabilizationPipelineTrait
Mutable methods for crate::videostab::MotionStabilizationPipeline
MotionStabilizationPipelineTraitConst
Constant methods for crate::videostab::MotionStabilizationPipeline
NullDeblurerTrait
Mutable methods for crate::videostab::NullDeblurer
NullDeblurerTraitConst
Constant methods for crate::videostab::NullDeblurer
NullFrameSourceTrait
Mutable methods for crate::videostab::NullFrameSource
NullFrameSourceTraitConst
Constant methods for crate::videostab::NullFrameSource
NullInpainterTrait
Mutable methods for crate::videostab::NullInpainter
NullInpainterTraitConst
Constant methods for crate::videostab::NullInpainter
NullLogTrait
Mutable methods for crate::videostab::NullLog
NullLogTraitConst
Constant methods for crate::videostab::NullLog
NullOutlierRejectorTrait
Mutable methods for crate::videostab::NullOutlierRejector
NullOutlierRejectorTraitConst
Constant methods for crate::videostab::NullOutlierRejector
NullWobbleSuppressorTrait
Mutable methods for crate::videostab::NullWobbleSuppressor
NullWobbleSuppressorTraitConst
Constant methods for crate::videostab::NullWobbleSuppressor
OnePassStabilizerTrait
Mutable methods for crate::videostab::OnePassStabilizer
OnePassStabilizerTraitConst
Constant methods for crate::videostab::OnePassStabilizer
PyrLkOptFlowEstimatorBaseTrait
Mutable methods for crate::videostab::PyrLkOptFlowEstimatorBase
PyrLkOptFlowEstimatorBaseTraitConst
Constant methods for crate::videostab::PyrLkOptFlowEstimatorBase
RansacParamsTrait
Mutable methods for crate::videostab::RansacParams
RansacParamsTraitConst
Constant methods for crate::videostab::RansacParams
SparsePyrLkOptFlowEstimatorGpuTrait
Mutable methods for crate::videostab::SparsePyrLkOptFlowEstimatorGpu
SparsePyrLkOptFlowEstimatorGpuTraitConst
Constant methods for crate::videostab::SparsePyrLkOptFlowEstimatorGpu
SparsePyrLkOptFlowEstimatorTrait
Mutable methods for crate::videostab::SparsePyrLkOptFlowEstimator
SparsePyrLkOptFlowEstimatorTraitConst
Constant methods for crate::videostab::SparsePyrLkOptFlowEstimator
StabilizerBaseTrait
Mutable methods for crate::videostab::StabilizerBase
StabilizerBaseTraitConst
Constant methods for crate::videostab::StabilizerBase
ToFileMotionWriterTrait
Mutable methods for crate::videostab::ToFileMotionWriter
ToFileMotionWriterTraitConst
Constant methods for crate::videostab::ToFileMotionWriter
TranslationBasedLocalOutlierRejectorTrait
Mutable methods for crate::videostab::TranslationBasedLocalOutlierRejector
TranslationBasedLocalOutlierRejectorTraitConst
Constant methods for crate::videostab::TranslationBasedLocalOutlierRejector
TwoPassStabilizerTrait
Mutable methods for crate::videostab::TwoPassStabilizer
TwoPassStabilizerTraitConst
Constant methods for crate::videostab::TwoPassStabilizer
VideoFileSourceTrait
Mutable methods for crate::videostab::VideoFileSource
VideoFileSourceTraitConst
Constant methods for crate::videostab::VideoFileSource
WeightingDeblurerTrait
Mutable methods for crate::videostab::WeightingDeblurer
WeightingDeblurerTraitConst
Constant methods for crate::videostab::WeightingDeblurer
WobbleSuppressorBaseTrait
Mutable methods for crate::videostab::WobbleSuppressorBase
WobbleSuppressorBaseTraitConst
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.