Trait CUDA_TemplateMatchingTrait

Source
pub trait CUDA_TemplateMatchingTrait: AlgorithmTrait + CUDA_TemplateMatchingTraitConst {
    // Required method
    fn as_raw_mut_CUDA_TemplateMatching(&mut self) -> *mut c_void;

    // Provided methods
    fn match_(
        &mut self,
        image: &impl ToInputArray,
        templ: &impl ToInputArray,
        result: &mut impl ToOutputArray,
        stream: &mut impl StreamTrait,
    ) -> Result<()> { ... }
    fn match__def(
        &mut self,
        image: &impl ToInputArray,
        templ: &impl ToInputArray,
        result: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn match_( &mut self, image: &impl ToInputArray, templ: &impl ToInputArray, result: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>

Computes a proximity map for a raster template and an image where the template is searched for.

§Parameters
  • image: Source image.
  • templ: Template image with the size and type the same as image .
  • result: Map containing comparison results ( CV_32FC1 ). If image is W x H and templ is w x h, then result must be W-w+1 x H-h+1.
  • stream: Stream for the asynchronous version.
§C++ default parameters
  • stream: Stream::Null()
Source

fn match__def( &mut self, image: &impl ToInputArray, templ: &impl ToInputArray, result: &mut impl ToOutputArray, ) -> Result<()>

Computes a proximity map for a raster template and an image where the template is searched for.

§Parameters
  • image: Source image.
  • templ: Template image with the size and type the same as image .
  • result: Map containing comparison results ( CV_32FC1 ). If image is W x H and templ is w x h, then result must be W-w+1 x H-h+1.
  • stream: Stream for the asynchronous version.
§Note

This alternative version of CUDA_TemplateMatchingTrait::match_ 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§