machinevisiontoolbox.Image.SIFT

Image.SIFT(**kwargs)

Find SIFT features in image

Parameters:

kwargs – arguments passed to OpenCV

Returns:

set of 2D point features

Return type:

SIFTFeature

Inheritance diagram of machinevisiontoolbox.ImagePointFeatures.SIFTFeature

Returns an iterable and sliceable object that contains SIFT features and descriptors.

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image.Read("eiffel-1.png")
>>> sift = img.SIFT()
>>> len(sift)  # number of features
2986
>>> print(sift[:5])
SIFTFeature features, 5 points
References:
  • Distinctive image features from scale-invariant keypoints. David G. Lowe Int. J. Comput. Vision, 60(2):91–110, November 2004.

  • Robotics, Vision & Control for Python, Section 14.1, P. Corke, Springer 2023.

Seealso:

SIFTFeature cv2.SIFT_create