edgedetect

edgedetect — Performs canny edge detection on videos and images.

Synopsis

struct              Gstedgedetect;

Properties

  "aperture"                 gint                  : Read / Write
  "mask"                     gboolean              : Read / Write
  "threshold1"               gint                  : Read / Write
  "threshold2"               gint                  : Read / Write

Description

FIXME:Describe edgedetect here.

Example launch line

gst-launch-0.10 videotestsrc ! decodebin ! ffmpegcolorspace ! edgedetect ! ffmpegcolorspace ! xvimagesink

Synopsis

Element Information

plugin

opencv

author

Michael Sheldon <mike@mikeasoft.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 Gstedgedetect

struct Gstedgedetect {
  GstElement element;

  GstPad *sinkpad, *srcpad;

  gboolean mask;

  int threshold1, threshold2, aperture;

  IplImage *cvEdge, *cvGray, *cvImage, *cvCEdge;
};

Property Details

The "aperture" property

  "aperture"                 gint                  : Read / Write

Aperture size for Sobel operator (Must be either 3, 5 or 7.

Allowed values: [3,7]

Default value: 3


The "mask" property

  "mask"                     gboolean              : Read / Write

Sets whether the detected edges should be used as a mask on the original input or not.

Default value: TRUE


The "threshold1" property

  "threshold1"               gint                  : Read / Write

Threshold value for canny edge detection.

Allowed values: [0,1000]

Default value: 50


The "threshold2" property

  "threshold2"               gint                  : Read / Write

Second threshold value for canny edge detection.

Allowed values: [0,1000]

Default value: 150