Skip to content

applyColorMap1

Image processingfunctionOpenCV 5.0.0
import { applyColorMap1 } from '@banou/opencv-wasm'

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

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

Applies a user colormap on a given image.

applyColorMap1(src: Mat, dst: Mat, userColor: Mat): void;
src

The source image, grayscale or colored of type CV_8UC1 or CV_8UC3. If CV_8UC3, then the CV_8UC1 image is generated internally using cv::COLOR_BGR2GRAY.

dst

Output destination, filled by the native operation. The result is the colormapped source image of the same number of channels as userColor. Note: Mat::create is called on dst.

userColor

The colormap to apply of type CV_8UC1 or CV_8UC3 and size 256

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.