decolor
import { decolor } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSsrc, grayscale, color_boost
FUNCTIONdecolor
RETURN TYPEvoid
photo_hdr
Transforms a color image to a grayscale image. It is a basic tool in digital printing, stylized black-and-white photograph rendering, and in many single channel image processing applications [CL12] .
decolor(src: Mat, grayscale: Mat, color_boost: Mat): void;srcInput 8-bit 3-channel image.
grayscaleOutput destination, filled by the native operation. Output 8-bit 1-channel image.
color_boostOutput destination, filled by the native operation. Output 8-bit 3-channel image.
This function is to be applied on color images.
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.