## templatematch templatematch — Performs template matching on videos and images, providing detected positions via bus messages |

## Synopsis

    struct              GstStretch;
    struct              GstTemplateMatch;

## Properties

      "display"                  gboolean              : Read / Write
      "method"                   gint                  : Read / Write
      "template"                 gchar*                : Read / Write

## Description

FIXME:Describe templatematch here.

### Example launch line

    1
    gst-launch-0.10 videotestsrc ! decodebin ! ffmpegcolorspace ! templatematch template=/path/to/file.jpg ! ffmpegcolorspace ! xvimagesink

## Synopsis

### Element Information

plugin | opencv
author | Noam Lewis <jones.noamle@gmail.com>
class | Filter/Effect/Video

### Element Pads

name | sink
direction | sink
presence | always
details | video/x-raw-rgb, bpp=(int)24, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

name | src
direction | source
presence | always
details | video/x-raw-rgb, bpp=(int)24, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

## Details

### struct GstStretch

    struct GstStretch;

### struct GstTemplateMatch

    struct GstTemplateMatch {
      GstElement element;

      GstPad *sinkpad, *srcpad;

      gint method;
      gboolean display;

      gchar *template;

      IplImage *cvImage, *cvGray, *cvTemplateImage, *cvDistImage;
    };

## Property Details

### The `"display"` property

      "display"                  gboolean              : Read / Write

Sets whether the detected template should be highlighted in the output.

Default value: TRUE

### The `"method"` property

      "method"                   gint                  : Read / Write

Specifies the way the template must be compared with image regions. 0=SQDIFF, 1=SQDIFF_NORMED, 2=CCOR, 3=CCOR_NORMED, 4=CCOEFF, 5=CCOEFF_NORMED.

Allowed values: [0,5]

Default value: 3

### The `"template"` property

      "template"                 gchar*                : Read / Write

Filename of template image.

Default value: NULL