pub trait MotionSaliencyBinWangApr2014Trait: MotionSaliencyBinWangApr2014TraitConst + MotionSaliencyTrait {
// Required method
fn as_raw_mut_MotionSaliencyBinWangApr2014(&mut self) -> *mut c_void;
// Provided methods
fn compute_saliency(
&mut self,
image: &impl ToInputArray,
saliency_map: &mut impl ToOutputArray,
) -> Result<bool> { ... }
fn set_imagesize(&mut self, w: i32, h: i32) -> Result<()> { ... }
fn init(&mut self) -> Result<bool> { ... }
fn set_image_width(&mut self, val: i32) -> Result<()> { ... }
fn set_image_height(&mut self, val: i32) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::saliency::MotionSaliencyBinWangApr2014
Required Methods§
fn as_raw_mut_MotionSaliencyBinWangApr2014(&mut self) -> *mut c_void
Provided Methods§
fn compute_saliency( &mut self, image: &impl ToInputArray, saliency_map: &mut impl ToOutputArray, ) -> Result<bool>
Sourcefn set_imagesize(&mut self, w: i32, h: i32) -> Result<()>
fn set_imagesize(&mut self, w: i32, h: i32) -> Result<()>
This is a utility function that allows to set the correct size (taken from the input image) in the corresponding variables that will be used to size the data structures of the algorithm.
§Parameters
- W: width of input image
- H: height of input image
Sourcefn init(&mut self) -> Result<bool>
fn init(&mut self) -> Result<bool>
This function allows the correct initialization of all data structures that will be used by the algorithm.
fn set_image_width(&mut self, val: i32) -> Result<()>
fn set_image_height(&mut self, val: i32) -> 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.