detail_leaveBiggestComponent
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
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;featuresfeatures argument (detail__ImageFeaturesVector).
pairwise_matchespairwise matches argument (detail__MatchesInfoVector).
conf_thresholdconf 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.