lvrect2pol(3)

LIBRARY ROUTINE
lvrect2pol - Converts Data from Rectangular to Polar or Polar to rectangular coordinates.

LIBRARY CALL
#include "vinclude.h"
int
lvrect2pol ( image, convert_dir, process_dir)
struct xvimage *image;
int    process_dir, convert_dir;

INPUT

*image
    (struct xvimage) data to be converted

convert_dir
    (int) 0 = rectangular -> polar, 1 = polar to rect.

process_dir
    (int) 0 = down vectors, 1 = across bands

OUTPUT

*image
    (struct xvimage) converted image

MODIFICATIONS

Wed Jun 6 18:14:24 MDT 1990 Donna Koechner - updated to ghostwriter
Audit Done 05-OCT-90 Donna Koechner

DESCRIPTION
lvrect2pol converts a data file from rectangular coordinates to polar coordinates and polar coordinates to rectangular coordinates. The data can be processed across bands or down vectors.

1) struct xvimage *image
    A pointer to the image to be converted. The data is overwritten with the converted data.

2) int process_dir
    The process direction of the data, 0 = down vectors, 1 = across bands.

3) int convert_dir
    The convertion direction, 0 = rectangular -> polar and 1 = polar to rectangular.

lvrect2pol will return a 1 upon sucess and a 0 upon failure.

SEE ALSO
vrect2pol(1), intro(3), vipl(3), verror(3), vutils(3)

RESTRICTIONS
Data storage types of integer, float or complex are required

AUTHOR
Ramiro Jordan, Jeremy Worley, Tom Sauer

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