pub trait MotionInpainterTrait: InpainterBaseTrait + MotionInpainterTraitConst {
// Required method
fn as_raw_mut_MotionInpainter(&mut self) -> *mut c_void;
// Provided methods
fn set_opt_flow_estimator(
&mut self,
val: Ptr<IDenseOptFlowEstimator>,
) -> Result<()> { ... }
fn set_flow_error_threshold(&mut self, val: f32) -> Result<()> { ... }
fn set_dist_threshold(&mut self, val: f32) -> Result<()> { ... }
fn set_border_mode(&mut self, val: i32) -> Result<()> { ... }
fn inpaint(
&mut self,
idx: i32,
frame: &mut impl MatTrait,
mask: &mut impl MatTrait,
) -> Result<()> { ... }
}Expand description
Mutable methods for crate::videostab::MotionInpainter
Required Methods§
fn as_raw_mut_MotionInpainter(&mut self) -> *mut c_void
Provided Methods§
fn set_opt_flow_estimator( &mut self, val: Ptr<IDenseOptFlowEstimator>, ) -> Result<()>
fn set_flow_error_threshold(&mut self, val: f32) -> Result<()>
fn set_dist_threshold(&mut self, val: f32) -> Result<()>
fn set_border_mode(&mut self, val: i32) -> Result<()>
fn inpaint( &mut self, idx: i32, frame: &mut impl MatTrait, mask: &mut impl MatTrait, ) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.