cv.absdiff - MATLAB File Help
cv.absdiff

Calculates the per-element absolute difference between two arrays or between an array and a scalar

dst = cv.absdiff(src1, src2)

Input

Output

The function cv.absdiff calculates:

where I is a multi-dimensional index of array elements. In case of multi-channel arrays, each channel is processed independently.

Note: Saturation is not applied when the arrays have the depth int32. You may even get a negative value in the case of overflow.

See also