overlap

[ XITE Reference Manual | XITE home ]

Name

overlap - calculate overlapping area of two bands

Syntax

 #include <xite/copy.h>

 int overlap( IBAND ib1, IBAND ib2, IBAND* ob1,
    IBAND* ob2 );

Description

Input bands ib1 and ib2 are placed in a common coordinate system according to their (xstart, ystart) attributes. The overlapping area is calculated, and two subbands ob1 and ob2 are created and returned, pointing out the overlapping area in each band. ob1 will thus be a subband of ib1, and ob2 will be a subband of ib2.

Restrictions

Only accepts unsigned byte pixeltype.

Return value

 0 => ok,
 1 => bad pixel type input band 1
 2 => bad pixel type input band 2
 3 => no overlap

Author

Tor Lønnestad, BLAB, Ifi, UiO