HALCON Reference Manual / Filter / Arithmetic Operators

abs_image (Operator)

Name

abs_image — Calculate the absolute value (modulus) of an image.

Synopsis

abs_image(Image : ImageAbs : : )

Description

The operator abs_image calculates the absolute gray values of images of any type and stores the result in ImageAbs. The power spectrum of complex images is calculated as a 'real' image. The operator abs_image generates a logical copy of unsigned images.

Parameters

Image (input_object) (multichannel-)image(-array) object (int1 / int2 / int4 / int8 / real / complex)
Image(s) for which the absolute gray values are to be calculated.

ImageAbs (output_object) (multichannel-)image(-array) object (int1 / int2 / int4 / int8 / real)
Result image(s).

Example

convert_image_type (Image, ImageInt2, 'int2')
texture_laws (ImageInt2, ImageTexture, 'el', 2, 5)
abs_image (ImageTexture, ImageTexture)

Result

The operator abs_image returns the value 2 (H_MSG_TRUE). The behavior in case of empty input (no input images available) is set via the operator set_system(::'no_object_result',<Result>:)

Parallelization Information

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

See also

convert_image_type, power_byte

Module

Foundation


HALCON Reference Manual / Filter / Arithmetic Operators
Version 9.0.2 Copyright © 1996-2010 MVTec Software GmbH