FeatureMatch.distance#

property FeatureMatch.distance: Any#

Distance between corresponding features

Returns:

_description_

Return type:

float or ndarray(N)

Example:

>>> from machinevisiontoolbox import Image
>>> orb1 = Image.Read("eiffel-1.png").ORB()
>>> orb2 = Image.Read("eiffel-2.png").ORB()
>>> matches = orb1.match(orb2)
>>> matches.distance
array([ 79.    ,  84.1368,  85.8662, ..., 282.2959, 284.1707, 286.7211],
      shape=(39,))
>>> matches[0].distance
79.0