BaseFeature2D#

class BaseFeature2D(kp: list | ndarray | None = None, des: ndarray | None = None, scale: bool = False, orient: bool = False, image: ndarray | None = None)[source]#

A 2D point feature class

Methods

distance(other[, metric])

Distance between feature sets

draw(image, *args[, ax, filled, color, ...])

Draw features into image

draw2(image[, color, type])

drawKeypoints(image[, drawing, isift, ...])

Render keypoints into image

drawMatches(im1, sift1, im2, sift2, matches, ...)

filter(**kwargs)

Filter features

gridify(nbins, nfeat)

Sort features into grid

list()

List matches

match(other[, ratio, crosscheck, metric, ...])

Match point features

plot(*args[, ax, filled, color, alpha, ...])

Plot features using Matplotlib

sort([by, descending, inplace])

Sort features

subset([N])

Select subset of features

support(images[, N])

Find support region

table()

Print features in tabular form

Attributes

descriptor

Descriptor of feature

id

Image id for feature point

octave

Octave of feature

orientation

Orientation of feature

p

Feature coordinates

scale

Scale of feature

strength

Strength of feature

u

Horizontal coordinate of feature point

v

Vertical coordinate of feature point