HALCON Reference Manual 10.0.2
Table of Contents / Filters / Arithmetic ClassesClassesClasses | | | Operators

abs_imageabs_imageabs_imageAbsImageAbsImage (Operator)

Name

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

Signature

abs_image(Image : ImageAbs : : )

Herror abs_image(const Hobject Image, Hobject* ImageAbs)

Herror T_abs_image(const Hobject Image, Hobject* ImageAbs)

Herror abs_image(Hobject Image, Hobject* ImageAbs)

HImage HImage::AbsImage() const

HImageArray HImageArray::AbsImage() const

void HOperatorSetX.AbsImage(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*ImageAbs)

IHImageX* HImageX.AbsImage()

static void HOperatorSet.AbsImage(HObject image, out HObject imageAbs)

HImage HImage.AbsImage()

Description

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

abs_imageabs_imageabs_imageAbsImageAbsImage can be executed on an OpenCL device for int1, int2, int4, real, and complex images. However, since for OpenCL 1.0 only single precision floating point is supported for all devices, and not all rounding modes are supported, the OpenCL implementation can produce slightly different results from the scalar or SIMD implementations.

Parallelization

Parameters

ImageImageImageImageimage (input_object)  (multichannel-)image(-array) objectHImageHImageHImageXHobject (int1* / int2* / int4* / int8 / real* / complex*) *allowed for compute devices

Image(s) for which the absolute gray values are to be calculated.

ImageAbsImageAbsImageAbsImageAbsimageAbs (output_object)  (multichannel-)image(-array) objectHImageHImageHImageXHobject * (int1 / int2 / int4 / int8 / real)

Result image(s).

Example (HDevelop)

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

Result

The operator abs_imageabs_imageabs_imageAbsImageAbsImage 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>:)set_system("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)

See also

convert_image_typeconvert_image_typeconvert_image_typeConvertImageTypeConvertImageType, power_bytepower_bytepower_bytePowerBytePowerByte

Module

Foundation


Table of Contents / Filters / Arithmetic ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH