VistaIOZeroCrossings(3) | Library Functions Manual | VistaIOZeroCrossings(3) |
VistaIOZeroCrossings - mark zero crossings in an image
#include <vistaio.h>
VistaIOImage VistaIOZeroCrossings (src, dest, band)
VistaIOImage src, dest; VistaIOBand band;
VistaIOZeroCrossings marks the zero crossings of an image. It examines pixels of the source image, src, and sets destination pixels according to whether they correspond to zero crossings. If a destination pixel does not lie on a zero crossing, it is set to zero. If it does, it is set to the gradient of the zero crossing. The gradient is simply computed as the magnitude of the difference between pixels on each side of the zero crossing.
If the dest argument is NULL, VistaIOZeroCrossings creates a destination image with the appropriate properties. Otherwise, dest specifies an existing destination image to be used.
The destination image is smaller than the source image by one row and one column. It has either the same number of bands as the source image (if band is VistaIOAllBands), or a single band (if band specifies a particular band). Its pixel representation depends on that of the source image as defined by the following table:
Source Representation | Destination Representation |
VistaIOBit | not supported |
VistaIOUByte | not supported |
VistaIOSByte | VistaIOUByte |
VistaIOShort | VistaIOLong |
VistaIOLong | VistaIOLong |
VistaIOFloat | VistaIOFloat |
VistaIODouble | VistaIODouble |
VistaIOZeroCrossings returns the destination image if successful and NULL otherwise.
VistaIOZeroCrossings labels the destination image as a gradient image by giving it the attributes ncomponents: 1 and component_interp: gradient.
David Lowe <lowe@cs.ubc.ca>, Art Pope <pope@cs.ubc.ca>
Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com>
24 April 1993 | VistaIO Version 1.2.14 |