MAN page from Mandrake Other XITE-3.3-3.i386.rpm
SIGNDIFF
Section: C Library Functions (3)
Updated: 16 Mar 1998
Index
NAME
signDiff - signed difference between two bands
SYNTAX
#include <
xite/arithmetic.h>
int signDiff( IBAND input1, IBAND input2,
IBAND output, double scale, double offset );
DESCRIPTION
signDiffcalculates, pixel by pixel, the signeddifference between the two input images:
output(x,y) =
(input1(x,y)-input2(x,y))*scale + offset
For complex and double-complex bands, the result is
output(x,y).re =
(input1(x,y).re-input2(x,y).re)*scale + offset
output(x,y).im =
(input1(x,y).im-input2(x,y).im)*scale + offset
If the result is outside the pixeltype range, the result istruncated. Within the pixeltype range, the result isrounded to the nearest possible pixelvalue.
RESTRICTIONS
All bands must be of the same type. Only thelargest rectangle common to alle three bands isprocessed.
RETURN VALUE
0 => ok
1 => bands have different pixel types
2 => unknown pixel types
SEE ALSO
signDiff(1),
absDiff(3),
addw(3),
multiply(3),
divide(3)
AUTHOR
Tor Lønnestad, BLAB, Ifi, UiO
REVISED
Svein Bøe, Ifi, UiO. Implemented for all pixel types, notonly unsigned byte.
ID
$Id: signDiff.c,v 1.32 1997/05/27 12:36:39 svein Exp $
Index
- NAME
- SYNTAX
- DESCRIPTION
- RESTRICTIONS
- RETURN VALUE
- SEE ALSO
- AUTHOR
- REVISED
- ID
This document was created byman2html,using the manual pages.