Skip to content

rapid_extractLineBundle

rapidfunctionOpenCV 5.0.0
import { rapid_extractLineBundle } from '@banou/opencv-wasm'

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

ARGUMENTSlen, ctl2d, img, bundle
FUNCTIONrapid_extractLineBundle
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Extract the line bundle from an image

rapid_extractLineBundle(len: number, ctl2d: Mat, img: Mat, bundle: Mat, srcLocations: Mat): void;
len

the search radius. The bundle will have 2*len + 1 columns.

ctl2d

the search lines will be centered at this points and orthogonal to the contour defined by them. The bundle will have as many rows.

img

the image to read the pixel intensities values from

bundle

Output destination, filled by the native operation. line bundle image with size ctl2d.rows() x (2 * len + 1) and the same type as img

srcLocations

Output destination, filled by the native operation. the source pixel locations of bundle in img as CV_16SC2

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.