pub struct LpMotionStabilizer { /* private fields */ }
Implementations§
Source§impl LpMotionStabilizer
impl LpMotionStabilizer
Sourcepub fn new(model: MotionModel) -> Result<LpMotionStabilizer>
pub fn new(model: MotionModel) -> Result<LpMotionStabilizer>
§C++ default parameters
- model: MM_SIMILARITY
Sourcepub fn new_def() -> Result<LpMotionStabilizer>
pub fn new_def() -> Result<LpMotionStabilizer>
§Note
This alternative version of [new] function uses the following default values for its arguments:
- model: MM_SIMILARITY
Trait Implementations§
Source§impl Boxed for LpMotionStabilizer
impl Boxed for LpMotionStabilizer
Source§unsafe fn from_raw(
ptr: <LpMotionStabilizer as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <LpMotionStabilizer as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(
self,
) -> <LpMotionStabilizer as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self, ) -> <LpMotionStabilizer as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(
&self,
) -> <LpMotionStabilizer as OpenCVTypeExternContainer>::ExternSend
fn as_raw( &self, ) -> <LpMotionStabilizer as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <LpMotionStabilizer as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <LpMotionStabilizer as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl Debug for LpMotionStabilizer
impl Debug for LpMotionStabilizer
Source§impl Drop for LpMotionStabilizer
impl Drop for LpMotionStabilizer
Source§impl From<LpMotionStabilizer> for IMotionStabilizer
impl From<LpMotionStabilizer> for IMotionStabilizer
Source§fn from(s: LpMotionStabilizer) -> Self
fn from(s: LpMotionStabilizer) -> Self
Converts to this type from the input type.
Source§impl IMotionStabilizerTraitConst for LpMotionStabilizer
impl IMotionStabilizerTraitConst for LpMotionStabilizer
fn as_raw_IMotionStabilizer(&self) -> *const c_void
Source§impl LpMotionStabilizerTrait for LpMotionStabilizer
impl LpMotionStabilizerTrait for LpMotionStabilizer
fn as_raw_mut_LpMotionStabilizer(&mut self) -> *mut c_void
fn set_motion_model(&mut self, val: MotionModel) -> Result<()>
fn set_frame_size(&mut self, val: Size) -> Result<()>
fn set_trim_ratio(&mut self, val: f32) -> Result<()>
fn set_weight1(&mut self, val: f32) -> Result<()>
fn set_weight2(&mut self, val: f32) -> Result<()>
fn set_weight3(&mut self, val: f32) -> Result<()>
fn set_weight4(&mut self, val: f32) -> Result<()>
fn stabilize( &mut self, size: i32, motions: &Vector<Mat>, range: &impl RangeTraitConst, stabilization_motions: &mut impl MatTrait, ) -> Result<()>
Source§impl LpMotionStabilizerTraitConst for LpMotionStabilizer
impl LpMotionStabilizerTraitConst for LpMotionStabilizer
fn as_raw_LpMotionStabilizer(&self) -> *const c_void
fn motion_model(&self) -> Result<MotionModel>
fn frame_size(&self) -> Result<Size>
fn trim_ratio(&self) -> Result<f32>
fn weight1(&self) -> Result<f32>
fn weight2(&self) -> Result<f32>
fn weight3(&self) -> Result<f32>
fn weight4(&self) -> Result<f32>
impl Send for LpMotionStabilizer
Auto Trait Implementations§
impl Freeze for LpMotionStabilizer
impl RefUnwindSafe for LpMotionStabilizer
impl !Sync for LpMotionStabilizer
impl Unpin for LpMotionStabilizer
impl UnwindSafe for LpMotionStabilizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
Source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat
or another similar object. By passing
a mutable reference to the Mat
to this function your closure will get called with the read reference and a write references
to the same Mat
. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold
. Read more