ldwindow(3)

LIBRARY ROUTINE
ldwindow - 1D Window (Apodization) Functions.

LIBRARY CALL
#include "vinclude.h"
int
ldwindow ( image, window_option, theta, damp, width, procdir )
int    window_option, width, procdir;
float  theta, damp;
struct xvimage *image;

INPUT

image
    pointer to VIFF structure containing image data to be processed.

window_option
    specifies the window function to be applied to the input data.

theta
    theta parameter to be supplied to the kaiser function.

damp
    damping factor for exponential functions.

width
    desired window width for user defined window.

procdir
    process direction: 0 indicated vector oriented processing, 1 indicates band oriented processing.

OUTPUT

image
    pointer to VIFF structure containing image data after processing.

Return Value:
    1 on success, 0 on failure.

MODIFICATIONS

28 Feb 90 Jeremy Worley
    Added process direction code and multi-signal capability

23 Jul 90 Jeremy Worley
    Corrected incorrect data types and function/variable conflicts in bess() and fact().

04 Aug 90 Jeremy Worley
    Changed dload_vector() declaration to char**; added explicit return values in each window function; corrected indexing problems in each of the window functions; fixed indexing inconsistancy in driver code; moved low level routines into vmath.a;

DESCRIPTION
1D Window (Apodization) Functions. It multiplies a user selected 1D data sequence (real or complex) by the appropriate window function. The length of the data record is expected to be an even number. NOTE: complex data is expected to be in rectangular (not polar) form.

Data can be processed with either band or vector orientation. The default data processing direction is in the vector direction. This means that data stored in multiband format will be processed as a set of data sequences, where each sequence corresponds to a pixel location, and the points of each sequence are defined by the bands corresponding to that pixel location. The direction of processing can be changed so that each band is processed as a signal (instead of each vector being a signal) by setting the -d option to 1.

SEE ALSO
dwindow(1), intro(3), vipl(3), verror(3), vutils(3) dgwindow

RESTRICTIONS
ldwindow processes signals of type float or complex only.

AUTHOR
Ramiro Jordan, Glen Abousleman

COPYRIGHT
Copyright 1991, University of New Mexico. All rights reserved.