applyColorMap1
import { applyColorMap1 } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSsrc, dst, userColor
FUNCTIONapplyColorMap1
RETURN TYPEvoid
Applies a user colormap on a given image.
applyColorMap1(src: Mat, dst: Mat, userColor: Mat): void;srcThe 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.
dstOutput 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.
userColorThe 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.