BaseFeature2D.support#

BaseFeature2D.support(images: Any, N: int = 50) Any[source]#

Find support region

Parameters:
  • images (Image or list of Image) – the image from which the feature was extracted

  • N (int, optional) – size of square window, defaults to 50

Returns:

support region

Return type:

Image instance

The support region about the feature’s centroid is extracted, rotated and scaled.

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image.Read("eiffel-1.png")
>>> orb = img.ORB()
>>> support = orb[0].support(img)
>>> support
Image(size=(50, 50), dtype=uint8, nplanes=3, colororder=R:G:B)

Note

If the features come from multiple images then the feature’s id attribute is used to index into images which must be a list of Image objects.