extractChannel
import { extractChannel } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSsrc, dst, coi
FUNCTIONextractChannel
RETURN TYPEvoid
Extracts a single channel from src (coi is 0-based index)
See: mixChannels, split
extractChannel(src: Mat, dst: Mat, coi: number): void;srcinput array
dstOutput destination, filled by the native operation. output array
coiindex 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.