Skip to content

KeyPoint_overlap

Core and matricesfunctionOpenCV 5.0.0
import { KeyPoint_overlap } from '@banou/opencv-wasm'

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

ARGUMENTSkp1, kp2
FUNCTIONKeyPoint_overlap
RETURN TYPEnumber
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

This method computes overlap for pair of keypoints. Overlap is the ratio between area of keypoint regions' intersection and area of keypoint regions' union (considering keypoint region as circle). If they don't overlap, we get zero. If they coincide at same location with same size, we get 1.

KeyPoint_overlap(kp1: KeyPoint, kp2: KeyPoint): number;
kp1

First keypoint

kp2

Second keypoint

Returns

The number 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.