Horus Doc || Global Function Guide || General documentation   | Function documentation  

HxInf

Synopsis

HxImageRep HxInf(HxImageRep im1, HxImageRep im2)

Input

HxImageRep im1
The first input image

HxImageRep im2
The second input image

Return value

HxImageRep
The pixelwise infimum of the input images

Description

The function HxInf takes the infimum of two images on a pixel-by-pixel basis. The infimum of two vector values of equal dimensionality is defined as the component wise infimum resulting in a vector with the same dimensionality. The infimum of pixel types with different dimensionalities cannot be taken.

Remarks

Admissable image types
The two input images should have the same dimensionality, the same pixeldimensionality and the same size.

Examples

Taking the pixelwise infimum of two images

#include "HxImageRepGlobalFuncs.h"
#include "HxImageRep.h"

HxImageRep HxInfExample1(HxImageRep im1, HxImageRep im2) {
   im1 = HxInf(im1, im2);

   return im1;
}

int main(int argc, char* argv[])
{
    HxImageRep im1 = HxMakeFromFile(argv[1]);
    HxImageRep im2 = HxMakeFromFile(argv[2]);
    im1 = HxInfExample1(im1, im2);
    HxWriteFile(im1, argv[3]);

    return 0;
}

exampleImage1.gif

First input image for the HxInf example.

exampleImage2.gif

Second input image for the HxInf example.

HxInfResult1.gif

Output image of the HxInf example.

In this example we take the infimum of two (scalar) images.

See also

HxMax, HxMin, HxSup,

Keywords

Binary, Arithmetic,


Generated on Mon Jan 27 15:45:00 2003 for GlobalFunctionGuide by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001