Main Page   File List   Globals  

vinvert.c File Reference

vinvert - inverts an image. More...


Detailed Description

vinvert - inverts an image.

Description
The vinvert program inverts an image (swapping black and white). vinvert inverts each input image to produce a corresponding output image. The opera­ tion is suitable for swapping black and white in a grey-scale image.

Each output pixel is computed from the corresponding input pixel by

out-pixel = M - in-pixel

where M is the maximum value allowed by the pixel representation, or 1 in the case of float or double pixels. Input pixel values must lie in the range [0,M].

Each output image has the same number of bands, rows and columns, and the same pixel representation, as the corresponding input image.

Usage
vinvert
Parameters:
-in  input image(s)
-out  output image
Examples

Known bugs
none.
Author:
Arthur Pope, UBC Laboratory for Computational Intelligence

Generated on Tue Nov 23 09:50:52 2004 for VIA - Volumetric Image Analysis by doxygen1.2.15