Skip to content

detail_leaveBiggestComponent

stitchingfunctionOpenCV 5.0.0
import { detail_leaveBiggestComponent } from '@banou/opencv-wasm'

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

ARGUMENTSfeatures, pairwise_matches, conf_threshold
FUNCTIONdetail_leaveBiggestComponent
RETURN TYPEIntVector
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Keep the largest connected image component under the match-confidence threshold and return its original image indices.

detail_leaveBiggestComponent(features: detail__ImageFeaturesVector, pairwise_matches: detail__MatchesInfoVector, conf_threshold: number): IntVector;
features

features argument (detail__ImageFeaturesVector).

pairwise_matches

pairwise matches argument (detail__MatchesInfoVector).

conf_threshold

conf threshold argument (number).

Returns

The IntVector result. Release returned native handles with using or delete(), including handles nested in results.

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.