max2__ ( Image1, Image2 : ImageMax : : )

Calculate the maximum of two images pixel by pixel.

max2__ calculates the maximum of the images Image1 and Image2 (pixel by pixel). The result is stored in the image ImageMax. The resulting image has the same pixel type as the input image. If several (pairs of) images are processed in one call, every i-th image from Image1 is compared to the i-th image from Image2. Thus the number of images in both input parameters must be the same. An output image is generated for every input pair.


Attention

The two input images must be of the same type and size.


Parameters

Image1 (input_object)
image(-array) -> object : byte / int1 / int2 / int4 / real / direction / cyclic
Image 1

Image2 (input_object)
image(-array) -> object : byte / int1 / int2 / int4 / real / direction / cyclic
Image 2

ImageMax (output_object)
image(-array) -> object : byte / int1 / int2 / int4 / real / direction / cyclic
Image containing the maximum.


Example
read_image(Bild1::"affe":)>
read_image(Bild2::"fabrik":)>
max2__(Bild1,Bild2:Max::)>
disp_image(Max:::)>

Result

If the parameter values are correct the operator max2__ returns the value TRUE. The behavior in case of empty input (no input images available) is set via the operator set_system(::'no_object_result',<Result>:). If necessary an exception is raised.


Alternatives

max2__


See also

min2__



Copyright © 1996-1997 MVTec Software GmbH