[−][src]Function opencv::cudaarithm::subtract
pub fn subtract(
src1: &dyn ToInputArray,
src2: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
mask: &dyn ToInputArray,
dtype: i32,
stream: &mut Stream
) -> Result<()>
Computes a matrix-matrix or matrix-scalar difference.
Parameters
- src1: First source matrix or scalar.
- src2: Second source matrix or scalar. Matrix should have the same size and type as src1 .
- dst: Destination matrix that has the same size and number of channels as the input array(s). The depth is defined by dtype or src1 depth.
- mask: Optional operation mask, 8-bit single channel array, that specifies elements of the destination array to be changed. The mask can be used only with single channel images.
- dtype: Optional depth of the output array.
- stream: Stream for the asynchronous version.
See also
subtract
C++ default parameters
- mask: noArray()
- dtype: -1
- stream: Stream::Null()