Skip to main content

Hypotenuse

Calculates the euclidean distance of two points between two images.

🖼️ Image options and parameters of hypotenuse method

A "hypotenuse filter" is using two compatible images to change values of each pixel by calculating Euclidean distance with the formula:

NewValue=Value12+Value22NewValue = \sqrt{Value1^2+Value2^2}

Where Value1Value1 is a value of the pixel in the first image and Value2Value2 is the value of the second one. The goal is to identify which points in one image correspond to points in another image, which is essential for various computer vision and image processing applications. Calculating hypotenuse value between two pixels is also necessary for image aligning and feature matching.

Kinds of images compatible with algorithm

Image propertyWhat it meansPossible values
bitDepthnumber of bits per channel[8,16]
componentsnumber of componentsany
alphais alpha channel allowedtrue

Parameters and default values

  • otherImage

  • options

Options

PropertyRequiredDefault value
channelsno-
caution

Images must be compatible by size, bit depth, number of channels and number of alpha channels. However, for the resulting image user can choose the bit depth of the resulting image as well as channels which the algorithm will be applied to.