Herror ::min_image (
    Hobject Image1,
    Hobject Image2,
    Hobject *ImageMin
)
HImage HImage::MinImage (
    const HImageArray &Image2
) const
HImageArray HImageArray::MinImage (
    const HImageArray &Image2
) const

Calculate the minimum of two images pixel by pixel.

The operator ::min_image determines the minimum (pixel by pixel) of the images Image1 and Image2. The result is stored in the image ImageMin. 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.


Parameters

Image1 (input_object)
(multichannel-)image(-array) -> Hobject: HImage(Array) ( byte / int1 / int2 / int4 / real / direction / cyclic )
Image(s) 1.

Image2 (input_object)
(multichannel-)image(-array) -> Hobject: HImage(Array) ( byte / int1 / int2 / int4 / real / direction / cyclic )
Image(s) 2.

ImageMin (output_object)
(multichannel-)image(-array) -> Hobject * : HImage(Array) ( byte / int1 / int2 / int4 / real / direction / cyclic )
Result image(s) by the minimization.


Result

If the parameter values are correct the operator ::min_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>) If necessary an exception handling is raised.


Alternatives

::gray_erosion


See also

::max_image, ::min_image


Module

Image filters



Copyright © 1996-2002 MVTec Software GmbH