SAD: Template matching

Description Usage Arguments Details Value Author(s) Examples

View source: R/SAD.R

Description

These functions perform template matching using SAD (Sum of absolute differences), NCC (Normalized cross correlation), or FNCC (fast normalized cross correlation).

Usage

1
2
3
SAD(trg, tmp)
NCC(trg, tmp)
FNCC(trg, tmp)

Arguments

trg

A target image of Image object or an array.

tmp

A template image of Image object or an array.

Details

These functions demonstrate different algorithms for template matching.

Value

Returns a grayscale image.

Author(s)

Yuichiro Hourai, yhourai@gmail.com

Takeo Katsuki, takeo.katsuki@gmail.com

Examples

1
   demo(TemplateMatchingDemo)

tkatsuki/dipr documentation built on April 19, 2021, 7:18 p.m.