Skip to content

extractChannel

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

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

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

Extracts a single channel from src (coi is 0-based index)

See: mixChannels, split

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

input array

dst

Output destination, filled by the native operation. output array

coi

index of channel to extract

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.