Skip to content

detail_selectRandomSubset

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

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

ARGUMENTScount, size, subset
FUNCTIONdetail_selectRandomSubset
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Returns random 'count' element subset of the {0,1,...,size-1} set

detail_selectRandomSubset(count: number, size: number, subset: IntVector): void;
count

count argument (number).

size

size argument (number).

subset

subset argument (IntVector).

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.