haarTexture

[ XITE Reference Manual | XITE home ]

Name

haarTexture - texture extraction from 2D Haar transform

Syntax

 #include <xite/haar.h>

 int haarTexture( IR_BAND input, IR_BAND output,
    int xp, int yp );

Description

Extracts texture information from the input band, returns it through the output band. The input is assumed to be the result of a forward 2D haar transform, haar2d.

xp (and yp) specifies the kind of textural information, and may be varied independently between 1 (high frequency information) and log2(XSIZE)+1 (low frequency), where XSIZE is the horisontal size of the image. The horisontal size of the texture element will be 2^xp (2^yp) except for xp = log2(XSIZE)+1, which will use a texture element of size XSIZE. Correspondingly for yp/YSIZE/vertical.

Return value

 0 => ok
 1 => bad pixel type input band
 2 => bad pixel type output band
 3 => bands have different sizes
 4 => sizes are not power of two
 5 => bad xp or yp arguments
 6 => malloc error

Restrictions

Input and output band must be of type IR_BAND and have equal size, both horizontal and vertical size must be some power of two. The input band must be the result of a forward 2D Haar transform.

See also

haar2d(3), haari2d(3)

Author

Tor Lønnestad, BLAB, Ifi, UiO