Skip to content

insertChannel

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

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

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

Inserts a single channel to dst (coi is 0-based index)

See: mixChannels, merge

insertChannel(src: Mat, dst: Mat, coi: number): void;
src

input array

dst

Input/output value, modified by the native operation. output array

coi

index of channel for insertion

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.