[−][src]Trait opencv::prelude::Convolution
Base class for convolution (or cross-correlation) operator. :
Required methods
pub fn as_raw_Convolution(&self) -> *const c_void
[src]
pub fn as_raw_mut_Convolution(&mut self) -> *mut c_void
[src]
Provided methods
pub fn convolve(
&mut self,
image: &dyn ToInputArray,
templ: &dyn ToInputArray,
result: &mut dyn ToOutputArray,
ccorr: bool,
stream: &mut Stream
) -> Result<()>
[src]
&mut self,
image: &dyn ToInputArray,
templ: &dyn ToInputArray,
result: &mut dyn ToOutputArray,
ccorr: bool,
stream: &mut Stream
) -> Result<()>
Computes a convolution (or cross-correlation) of two images.
Parameters
- image: Source image. Only CV_32FC1 images are supported for now.
- templ: Template image. The size is not greater than the image size. The type is the same as image .
- result: Result image. If image is W x H and templ is w x h, then result must be W-w+1 x H-h+1.
- ccorr: Flags to evaluate cross-correlation instead of convolution.
- stream: Stream for the asynchronous version.
C++ default parameters
- ccorr: false
- stream: Stream::Null()