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

HxSquaredDistance

Synopsis

HxImageRep HxSquaredDistance (HxImageRep im1, HxImageRep im2)

Input

HxImageRep im1
The first input image.

HxImageRep im2
The second input image.

Return value

HxImageRep
The squared Euclidian distance between the two input images.

Description

The function HxSquaredDistance takes the squared Euclidian distance between every two corresponding pixels of the input images. The value is stored in the corresponding pixel of the output image. The pixel precision of the output image equals the highest precision of the input images. The squared distance of two integer images, results in an integer result, while the squared distance of an integer and a double image, results in a double image.

Remarks

Valid input images
The input images should have the same dimensionality, the same size and the same pixel dimensionality.

Possible overflow
This function can result in an overflow.

See also

HxSqrt, HxMul,

Keywords

Binary, Distance,


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