contour

[ XITE Reference Manual | XITE home ]

Name

contour - create a contour map

Syntax

 #include <xite/contour.h>

 int contour( IBAND input, IBAND output,
    int eqd, int cpv, int bpv );

Description

Creates a contour map of the input image, with equidistance eqd. Contour pixels receive the value cpv, contour pixel value, and background pixels receive the value bpv, background pixel value. Contours should really be drawn between the pixels, but are shifted half a pixel to the left or half a pixel upward to hit a pixel.

Restrictions

input and output must have pixel type unsigned byte. eqd must be in [2, 255].

Return value

 0 => ok
 2 => bad pixel type input
 3 => bad pixel type output
 4 => bad eqd value (less than 2 or greater than 255)

See also

contour(1), crossing(3)

Author

Tor Lønnestad, BLAB, Ifi, UiO.

Id

$Id: contour.c,v 1.27 1997/01/24 19:23:46 svein Exp $