histoSpecify

[ XITE Reference Manual | XITE home ]

Name

histoSpecify - histo transformation to specified function

Syntax

 #include <xite/histo.h>

 int histoSpecify( IBAND b1, IBAND b2,
    histogram histo );

Description

Perform a histogram transformation generating a band with histogram approximating the given histogram as good as possible. Input and output band may be identical. If b1 and b2 have different sizes, the largest common rectangle is transformed.

 b1    - input band
 b2    - output histogram
 histo - histogram to be approximated

Return value

 0 => ok
 1 => bad input pixel type
 2 => bad output pixel type

Author

Tor L|nnestad

Id

$Id: histoSpecify.c,v 1.18 1997/01/08 10:17:11 svein Exp $