FilterTrait

Trait FilterTrait 

Source
pub trait FilterTrait: AlgorithmTrait + FilterTraitConst {
    // Required method
    fn as_raw_mut_Filter(&mut self) -> *mut c_void;

    // Provided methods
    fn apply(
        &mut self,
        src: &impl ToInputArray,
        dst: &mut impl ToOutputArray,
        stream: &mut impl StreamTrait,
    ) -> Result<()> { ... }
    fn apply_def(
        &mut self,
        src: &impl ToInputArray,
        dst: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::cudafilters::Filter

Required Methods§

Provided Methods§

Source

fn apply( &mut self, src: &impl ToInputArray, dst: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>

Applies the specified filter to the image.

§Parameters
  • src: Input image.
  • dst: Output image.
  • stream: Stream for the asynchronous version.
§C++ default parameters
  • stream: Stream::Null()
Source

fn apply_def( &mut self, src: &impl ToInputArray, dst: &mut impl ToOutputArray, ) -> Result<()>

Applies the specified filter to the image.

§Parameters
  • src: Input image.
  • dst: Output image.
  • stream: Stream for the asynchronous version.
§Note

This alternative version of FilterTrait::apply function uses the following default values for its arguments:

  • stream: Stream::Null()

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§