Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Many ways to do this, but you simple one is to use the void absdiff(InputArray src1, InputArray src2, OutputArray dst) function.

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

Parameters:

  • src1 – first input array or a scalar.
  • src2 – second input array or a scalar.
  • dst – output array that has the same size and type as input arrays.

Many ways to do this, but you the simple one is to use the void absdiff(InputArray src1, InputArray src2, OutputArray dst) function.

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

Parameters:

  • src1 – first input array or a scalar.
  • src2 – second input array or a scalar.
  • dst – output array that has the same size and type as input arrays.