cv.divide - MATLAB File Help
cv.divide

Performs per-element division of two arrays or a scalar by an array

dst = cv.divide(src1, src2)
dst = cv.divide(src1, src2, 'OptionName',optionValue, ...)

Input

Output

Options

The function cv.divide divides one array by another:

dst(I) = saturate(src1(I)*scale / src2(I))

When src2(I) is zero, dst(I) will also be zero. Different channels of multi-channel arrays are processed independently.

Note: Saturation is not applied when the output array has the depth int32. You may even get result of an incorrect sign in the case of overflow.

See also