Skip to content

TemplateMatchModes

Image processingclassOpenCV 5.0.0
import { TemplateMatchModes } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSTemplateMatchModes
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

imgproc_color_conversions

type of the template matching operation

Constructors and members

static TM_SQDIFF

R(x,y)= \sum _{x',y'} (T(x',y')-I(x+x',y+y'))^2
TM_SQDIFF: TemplateMatchModesValue<0>,

static TM_SQDIFF_NORMED

R(x,y)= \frac{\sum_{x',y'} (T(x',y')-I(x+x',y+y'))^2}{\sqrt{\sum_{
TM_SQDIFF_NORMED: TemplateMatchModesValue<1>,

static TM_CCORR

R(x,y)= \sum _{x',y'} (T(x',y') \cdot I(x+x',y+y'))
TM_CCORR: TemplateMatchModesValue<2>,

static TM_CCORR_NORMED

R(x,y)= \frac{\sum_{x',y'} (T(x',y') \cdot I(x+x',y+y'))}{\sqrt{
TM_CCORR_NORMED: TemplateMatchModesValue<3>,

static TM_CCOEFF

R(x,y)= \sum _{x',y'} (T'(x',y') \cdot I'(x+x',y+y'))
TM_CCOEFF: TemplateMatchModesValue<4>,

static TM_CCOEFF_NORMED

R(x,y)= \frac{ \sum_{x',y'} (T'(x',y') \cdot I'(x+x',y+y')) }{
TM_CCOEFF_NORMED: TemplateMatchModesValue<5>

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.