BaseFeature2D.support#
- BaseFeature2D.support(images: Any, N: int = 50) Any[source]#
Find support region
- Parameters:
images (
Imageor list ofImage) – the image from which the feature was extractedN (int, optional) – size of square window, defaults to 50
- Returns:
support region
- Return type:
Imageinstance
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
idattribute is used to index intoimageswhich must be a list of Image objects.