summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Chipirrás Navalón <vchipirras6@gmail.com>2015-08-27 21:51:52 +0200
committerLuis de Bethencourt <luis@debethencourt.com>2015-08-28 14:20:11 +0100
commitd53f37cfe37e10e0dd7d16ba5141f268d7a64f55 (patch)
treeef0ca1cb20ebea4a7a62a5395246e51cc562fd2d
parenta77d61edc58c2f628dc96709a09d28bc5db5f817 (diff)
downloadgstreamer-plugins-bad-d53f37cfe37e10e0dd7d16ba5141f268d7a64f55.tar.gz
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
-rw-r--r--ext/opencv/gstedgedetect.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/opencv/gstedgedetect.c b/ext/opencv/gstedgedetect.c
index 14781bd68..95ac2aecf 100644
--- a/ext/opencv/gstedgedetect.c
+++ b/ext/opencv/gstedgedetect.c
@@ -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);