Herror ::abs_image (
    Hobject Image,
    Hobject *ImageAbs
)
HImage HImage::AbsImage (
    void
) const
HImageArray HImageArray::AbsImage (
    void
) const

Calculate the absolute value (modulus) of an image.

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) -> Hobject: HImage(Array) ( any )
Image(s) for which the absolute gray values are to be calculated.

ImageAbs (output_object)
(multichannel-)image(-array) -> Hobject * : HImage(Array) ( any )
Result image(s).


Example
laws_int2(Image,&Texture,0,5);
abs_image(Texture,Abs);

Result

The operator ::abs_image returns the value 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>)


See also

::convert_image_type, ::power_byte


Module

Image filters



Copyright © 1996-2002 MVTec Software GmbH