Skip to content

ximgproc_colorMatchTemplate

Extended image processingfunctionOpenCV 5.0.0
import { ximgproc_colorMatchTemplate } from '@banou/opencv-wasm'

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

ARGUMENTSimg, templ, result
FUNCTIONximgproc_colorMatchTemplate
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Compares a color template against overlapped color image regions.

ximgproc_colorMatchTemplate(img: Mat, templ: Mat, result: Mat): void;
img

Image where the search is running. It must be 3 channels image

templ

Searched template. It must be not greater than the source image and have 3 channels

result

Output destination, filled by the native operation. Map of comparison results. It must be single-channel 64-bit floating-point

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.