profile

[ XITE Reference Manual | XITE home ]

Name

profile - Calculate pixel values along a line.

Syntax

 #include <xite/arithmetic.h>

 int profile( IBAND band, double x, double y,
    double direction, double step, double dist,
    int ip, double* arr, int maxlen );

Description

profile calculates the pixel values along a line starting at (x,y) in the direction direction.

band is a BIFF image band of any type. x and y make up the start point of the profile. direction is the direction of the profile in radians. step is the distance between two points in the profile. dist is the length of the profile. ip is the interpolation degree (only ip = 1 is implemented). arr is an array of return values, starting on array index 1 where the profile is stored. maxlen is the maximum length of the profile (length of arr)

Return value

Length of profile, or negative value on error.

See also

crossSection(3)

Author

Otto Milvang