Skip to content

xfeatures2d_MSDDetector

xfeatures2dclassOpenCV 5.0.0
import { xfeatures2d_MSDDetector } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSxfeatures2d_MSDDetector
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits xfeatures2d_Feature2D.

Class implementing the MSD (Maximal Self-Dissimilarity) keypoint detector, described in [Tombari14].

The algorithm implements a novel interest point detector stemming from the intuition that image patches which are highly dissimilar over a relatively large extent of their surroundings hold the property of being repeatable and distinctive. This concept of "contextual self-dissimilarity" reverses the key paradigm of recent successful techniques such as the Local Self-Similarity descriptor and the Non-Local Means filter, which build upon the presence of similar - rather than dissimilar - patches. Moreover, it extends to contextual information the local self-dissimilarity notion embedded in established detectors of corner-like interest points, thereby achieving enhanced repeatability, distinctiveness and localization accuracy.

Constructors and members

static create

Create an owned xfeatures2d_MSDDetector instance with the supplied configuration.

Class implementing the MSD (Maximal Self-Dissimilarity) keypoint detector, described in [Tombari14].

create(m_patch_radius: number, m_search_area_radius: number, m_nms_radius: number, m_nms_scale_radius: number, m_th_saliency: number, m_kNN: number, m_scale_factor: number, m_n_scales: number, m_compute_orientation: boolean): xfeatures2d_MSDDetector | null;
10 available overloads
create(): xfeatures2d_MSDDetector | null;
create(m_patch_radius: number): xfeatures2d_MSDDetector | null;
create(m_patch_radius: number, m_search_area_radius: number): xfeatures2d_MSDDetector | null;
create(m_patch_radius: number, m_search_area_radius: number, m_nms_radius: number): xfeatures2d_MSDDetector | null;
create(m_patch_radius: number, m_search_area_radius: number, m_nms_radius: number, m_nms_scale_radius: number): xfeatures2d_MSDDetector | null;
create(m_patch_radius: number, m_search_area_radius: number, m_nms_radius: number, m_nms_scale_radius: number, m_th_saliency: number): xfeatures2d_MSDDetector | null;
create(m_patch_radius: number, m_search_area_radius: number, m_nms_radius: number, m_nms_scale_radius: number, m_th_saliency: number, m_kNN: number): xfeatures2d_MSDDetector | null;
create(m_patch_radius: number, m_search_area_radius: number, m_nms_radius: number, m_nms_scale_radius: number, m_th_saliency: number, m_kNN: number, m_scale_factor: number): xfeatures2d_MSDDetector | null;
create(m_patch_radius: number, m_search_area_radius: number, m_nms_radius: number, m_nms_scale_radius: number, m_th_saliency: number, m_kNN: number, m_scale_factor: number, m_n_scales: number): xfeatures2d_MSDDetector | null;
create(m_patch_radius: number, m_search_area_radius: number, m_nms_radius: number, m_nms_scale_radius: number, m_th_saliency: number, m_kNN: number, m_scale_factor: number, m_n_scales: number, m_compute_orientation: boolean): xfeatures2d_MSDDetector | null;
m_patch_radius

m patch radius argument (number).

m_search_area_radius

m search area radius argument (number).

m_nms_radius

m nms radius argument (number).

m_nms_scale_radius

m nms scale radius argument (number).

m_th_saliency

m th saliency argument (number).

m_kNN

m k nn argument (number).

m_scale_factor

m scale factor argument (number).

m_n_scales

m n scales argument (number).

m_compute_orientation

m compute orientation argument (boolean).

Returns

The xfeatures2d_MSDDetector | null result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

setPatchRadius

Set the patch radius used by this xfeatures2d_MSDDetector object.

setPatchRadius(patch_radius: number): void;
patch_radius

patch radius argument (number).

getPatchRadius

Return the patch radius configured on this xfeatures2d_MSDDetector object.

getPatchRadius(): number;
Returns

The number result.

setSearchAreaRadius

Set the search area radius used by this xfeatures2d_MSDDetector object.

setSearchAreaRadius(use_orientation: number): void;
use_orientation

use orientation argument (number).

getSearchAreaRadius

Return the search area radius configured on this xfeatures2d_MSDDetector object.

getSearchAreaRadius(): number;
Returns

The number result.

setNmsRadius

Set the nms radius used by this xfeatures2d_MSDDetector object.

setNmsRadius(nms_radius: number): void;
nms_radius

nms radius argument (number).

getNmsRadius

Return the nms radius configured on this xfeatures2d_MSDDetector object.

getNmsRadius(): number;
Returns

The number result.

setNmsScaleRadius

Set the nms scale radius used by this xfeatures2d_MSDDetector object.

setNmsScaleRadius(nms_scale_radius: number): void;
nms_scale_radius

nms scale radius argument (number).

getNmsScaleRadius

Return the nms scale radius configured on this xfeatures2d_MSDDetector object.

getNmsScaleRadius(): number;
Returns

The number result.

setThSaliency

Set the th saliency used by this xfeatures2d_MSDDetector object.

setThSaliency(th_saliency: number): void;
th_saliency

th saliency argument (number).

getThSaliency

Return the th saliency configured on this xfeatures2d_MSDDetector object.

getThSaliency(): number;
Returns

The number result.

setKNN

Set the knn used by this xfeatures2d_MSDDetector object.

setKNN(kNN: number): void;
kNN

k nn argument (number).

getKNN

Return the knn configured on this xfeatures2d_MSDDetector object.

getKNN(): number;
Returns

The number result.

setScaleFactor

Set the scale factor used by this xfeatures2d_MSDDetector object.

setScaleFactor(scale_factor: number): void;
scale_factor

scale factor argument (number).

getScaleFactor

Return the scale factor configured on this xfeatures2d_MSDDetector object.

getScaleFactor(): number;
Returns

The number result.

setNScales

Set the nscales used by this xfeatures2d_MSDDetector object.

setNScales(use_orientation: number): void;
use_orientation

use orientation argument (number).

getNScales

Return the nscales configured on this xfeatures2d_MSDDetector object.

getNScales(): number;
Returns

The number result.

setComputeOrientation

Set the compute orientation used by this xfeatures2d_MSDDetector object.

setComputeOrientation(compute_orientation: boolean): void;
compute_orientation

compute orientation argument (boolean).

getComputeOrientation

Return the compute orientation configured on this xfeatures2d_MSDDetector object.

getComputeOrientation(): boolean;
Returns

The boolean result.

getDefaultName

Return the default name configured on this xfeatures2d_MSDDetector object.

getDefaultName(): string;
Returns

The string result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.