Synopsis
HxImageRep HxSup(HxImageRep im1, HxImageRep im2)
Input
HxImageRep im1
HxImageRep im2
Return value
HxImageRep
Description
The function HxSup takes the supremum of two images on a pixel-by-pixel basis. The supremum of two vector values of equal dimensionality is defined as the component wise supremum resulting in a vector with the same dimensionality. The supremum of pixel types with different dimensionalities cannot be taken.
Remarks
Examples
Taking the pixelwise supremum of two images
#include "HxImageRepGlobalFuncs.h" #include "HxImageRep.h" HxImageRep HxSupExample1(HxImageRep im1, HxImageRep im2) { im1 = HxSup(im1, im2); return im1; } int main(int argc, char* argv[]) { HxImageRep im1 = HxMakeFromFile(argv[1]); HxImageRep im2 = HxMakeFromFile(argv[2]); im1 = HxSupExample1(im1, im2); HxWriteFile(im1, argv[3]); return 0; }
First input image for the HxSup example.
Second input image for the HxSup example.
Output image of the HxSup example.
In this example take the supremum of two (scalar) images.
See also
Keywords
Binary, Arithmetic,