Synopsis
HxImageRep HxInf(HxImageRep im1, HxImageRep im2)
Input
HxImageRep im1
HxImageRep im2
Return value
HxImageRep
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
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; }
First input image for the HxInf example.
Second input image for the HxInf example.
Output image of the HxInf example.
In this example we take the infimum of two (scalar) images.
See also
Keywords
Binary, Arithmetic,