pub fn divide(
scale: f64,
src2: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
dtype: i32
) -> Result<()>
Expand description
Performs per-element division of two arrays or a scalar by an array.
The function cv::divide divides one array by another:
or a scalar by an array when there is no src1 :
Different channels of multi-channel arrays are processed independently.
For integer types when src2(I) is zero, dst(I) will also be zero.
Note: In case of floating point data there is no special defined behavior for zero src2(I) values. Regular floating-point division is used. Expect correct IEEE-754 behaviour for floating-point data (with NaN, Inf result values).
Note: Saturation is not applied when the output array has the depth CV_32S. You may even get result of an incorrect sign in the case of overflow.
Parameters
- src1: first input array.
- src2: second input array of the same size and type as src1.
- scale: scalar factor.
- dst: output array of the same size and type as src2.
- dtype: optional depth of the output array; if -1, dst will have depth src2.depth(), but in case of an array-by-array division, you can only pass -1 when src1.depth()==src2.depth().
See also
multiply, add, subtract
Overloaded parameters
C++ default parameters
- dtype: -1