diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-01-25 11:43:59 +0000 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-01-25 14:20:14 +0000 |
commit | 36e83661ec1ae62fcc6aa3ab557185ca9b3afbd2 (patch) | |
tree | dfe90d7bed0f02a74a05a9902e0288a2bc2e83e7 /ext/opencv/gstcvlaplace.h | |
parent | e389211aa54f2b1da9df9dbe80f8624ba5e045db (diff) |
opencv: fix cvlaplace
cvlaplace was also affected by the silent change in OpenCV API, same as
cvsobel. It hasn't been working for a while. It would return a plain black
image. This commit updates the usage of cvLaplace by using cvCvtColor to
create the grayscale intermediate image to process. This also means there
is no need anymore to use GstBaseTransform's transform_caps, since the pads
are RGB.
Diffstat (limited to 'ext/opencv/gstcvlaplace.h')
-rw-r--r-- | ext/opencv/gstcvlaplace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/opencv/gstcvlaplace.h b/ext/opencv/gstcvlaplace.h index 7ac91720a..859096433 100644 --- a/ext/opencv/gstcvlaplace.h +++ b/ext/opencv/gstcvlaplace.h @@ -72,6 +72,9 @@ struct _GstCvLaplace gdouble shift; IplImage *intermediary_img; + IplImage *cvGray; + IplImage *Laplace; + IplImage *CLaplace; }; struct _GstCvLaplaceClass |