lvsurf(3)

LIBRARY ROUTINE
lvsurf - Compute surface parameters (normal and angle)

LIBRARY CALL
#include "vinclude.h"
int
lvsurf(img1,img2,img3)
struct xvimage *img1, **img2, **img3;

INPUT

img1
    Pointer to FLOAT image used to represent a surface.

OUTPUT

norm
    Pointer to image pointer that will receive the image containing the normal vectors to each pixel on the surface.

ang Pointer to image pointer that will receive the image containing the angle between the surface normal and the reference plane normal.

MODIFICATIONS

7-Mar-91 Scott Wilson - Added transfer of pixel sizes from input to output

DESCRIPTION
lvsurf will take a surface image and produce two output images: one with the normals for each point on the surface and one with the angle between the surface normal and the normal to the zero plane of the image.

The angle output image is in degrees.

The output images are allocated inside lvsurf; the input image is not modified.

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

RESTRICTIONS
Works only on FLOAT images.

AUTHOR
Scott Wilson

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