absDiff

[ XITE Reference Manual | XITE home ]

Name

absDiff - absolute difference between two bands

Syntax

 #include <xite/arithmetic.h>

 int absDiff( IBAND input1, IBAND input2,
    IBAND output );

Description

absDiff calculates, pixel by pixel, the absolute value of the grey level difference between the two input images.

If the result is outside the pixeltype range, the result is limited.

Restrictions

Accepts all pixeltypes, as long as all three bands have the same pixeltype.

Return value

 0 => ok
 1 => bands have different pixel types
 2 => unknown pixel type

See also

absDiff(1), signDiff(3), addw(3), multiply(3), divide(3)

Author

Tor L|nnestad, BLAB, ifi, UiO

Id

$Id: absDiff.c,v 1.30 1997/05/27 14:47:53 svein Exp $