mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
edgedetect: remove unused and useless functions.
The cvSmooth cvNot functions and do not have the correct input parameters. Furthermore, cvSmooth function is not necessary for edge detection, because the Canny function makes the step of smoothing the image. And cvNot function is useless because there aren't changes if this function is eliminated. https://bugzilla.gnome.org/show_bug.cgi?id=754148
This commit is contained in:
parent
a77d61edc5
commit
d53f37cfe3
1 changed files with 0 additions and 2 deletions
|
@ -312,8 +312,6 @@ gst_edge_detect_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
|
|||
filter->cvImage->imageData = (char *) in_info.data;
|
||||
|
||||
cvCvtColor (filter->cvImage, filter->cvGray, CV_RGB2GRAY);
|
||||
cvSmooth (filter->cvGray, filter->cvEdge, CV_BLUR, 3, 3, 0, 0);
|
||||
cvNot (filter->cvGray, filter->cvEdge);
|
||||
cvCanny (filter->cvGray, filter->cvEdge, filter->threshold1,
|
||||
filter->threshold2, filter->aperture);
|
||||
|
||||
|
|
Loading…
Reference in a new issue