Trait MotionSaliencyBinWangApr2014Trait

Source
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

Required Methods§

Provided Methods§

Source

fn compute_saliency( &mut self, image: &impl ToInputArray, saliency_map: &mut impl ToOutputArray, ) -> Result<bool>

Source

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
Source

fn init(&mut self) -> Result<bool>

This function allows the correct initialization of all data structures that will be used by the algorithm.

Source

fn set_image_width(&mut self, val: i32) -> Result<()>

Source

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.

Implementors§