invert_image ( Image : ImageInvert : : )

Invert an image.

The operator invert_image inverts the gray values of an image. For images of the 'byte' and 'cyclic' type the result is calculated as:

     g' = 255 - g
Images of the 'direction' type are transformed by
     g' = (g + 90) modulo 180
In the case of signed types the values are negated. The resulting image has the same pixel type as the input image.

Several images can be processed in one call. An output image is generated for every input image.


Parameters

Image (input_object)
(multichannel-)image(-array) -> object : byte / direction / cyclic / int1 / int2 / uint2 / int4 / real
Input image(s).

ImageInvert (output_object)
(multichannel-)image(-array) -> object : byte / direction / cyclic / int1 / int2 / uint2 / int4 / real
Image(s) with inverted gray values.


Example
read_image(Orig,"fabrik") 
invert_image(Orig,Invert) 
disp_image(Invert,WindowHandle). 

Parallelization Information

invert_image is reentrant and automatically parallelized (on tuple level, channel level, domain level).


Possible Successors

watersheds


Alternatives

scale_image


See also

scale_image, add_image, sub_image


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH