templatematch

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

Synopsis

                    GstStretch;
                    GstTemplateMatch;

Properties

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

Description

FIXME:Describe templatematch here.

Example launch line

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

Details

GstStretch

typedef struct _GstStretch GstStretch;


GstTemplateMatch

typedef struct {
  GstElement element;

  GstPad *sinkpad, *srcpad;

  gint method;
  gboolean display;

  gchar *template;

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

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