Skip to content

broadcast

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

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

ARGUMENTSsrc, shape, dst
FUNCTIONbroadcast
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Broadcast the given Mat to the given shape.

broadcast(src: Mat, shape: Mat, dst: Mat): void;
src

input array

shape

target shape. Should be a list of CV_32S numbers. Note that negative values are not supported.

dst

Output destination, filled by the native operation. output array that has the given shape

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.