gstreamer/ext/opencv
David Rothlisberger f5992a6cdd opencv templatematch: Set caps to BGR order
templatematch operates on BGR data. In fact, OpenCV's IplImage always
stores color image data in BGR order -- this isn't documented at all in
the OpenCV source code, but there are hints around the web (see for
example
http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/opencv-intro.html#SECTION00041000000000000000
and http://www.comp.leeds.ac.uk/vision/opencv/iplimage.html ).

gst_templatematch_load_template loads the template (the image to find)
from disk using OpenCV's cvLoadImage, so it is stored in an IplImage in
BGR order. But in gst_templatematch_chain, no OpenCV conversion
functions are used: the imageData pointer of the IplImage for the video
frame (the image to search in) is just set to point to the raw buffer
data. Without this fix, that raw data is in RGB order, so the call to
cvMatchTemplate ends up comparing the template's Blue channel against
the frame's Red channel, producing very poor results.
2014-07-28 14:22:27 -03:00
..
fist.xml opencv: add handdetect plugin, initial implementation 2013-03-01 00:14:54 +00:00
gstcvdilate.c Fix FSF address 2012-11-04 00:09:59 +00:00
gstcvdilate.h Fix FSF address 2012-11-04 00:09:59 +00:00
gstcvdilateerode.c Fix FSF address 2012-11-04 00:09:59 +00:00
gstcvdilateerode.h Fix FSF address 2012-11-04 00:09:59 +00:00
gstcvequalizehist.c Fix FSF address 2012-11-04 00:09:59 +00:00
gstcvequalizehist.h Fix FSF address 2012-11-04 00:09:59 +00:00
gstcverode.c Fix FSF address 2012-11-04 00:09:59 +00:00
gstcverode.h Fix FSF address 2012-11-04 00:09:59 +00:00
gstcvlaplace.c Fix FSF address 2012-11-04 00:09:59 +00:00
gstcvlaplace.h Fix FSF address 2012-11-04 00:09:59 +00:00
gstcvsmooth.c Fix FSF address 2012-11-04 00:09:59 +00:00
gstcvsmooth.h Fix FSF address 2012-11-04 00:09:59 +00:00
gstcvsobel.c Fix FSF address 2012-11-04 00:09:59 +00:00
gstcvsobel.h Fix FSF address 2012-11-04 00:09:59 +00:00
gstdisparity.cpp opencv: don't unref NULL caps in finalize 2013-09-29 23:43:23 +01:00
gstdisparity.h opencv: Port to non-deprecated GMutex/GCond API 2013-08-23 12:01:07 +02:00
gstedgedetect.c edgedetect: Don't leak cvImages when caps are changing or the element is reused 2014-06-30 00:05:53 +02:00
gstedgedetect.h Fix FSF address 2012-11-04 00:09:59 +00:00
gstfaceblur.c faceblur: Port to OpencvVideoFilter base class 2014-07-04 21:13:49 -04:00
gstfaceblur.h faceblur: Port to OpencvVideoFilter base class 2014-07-04 21:13:49 -04:00
gstfacedetect.c facedetect: improve enum GstFaceDetectUpdates descriptions 2014-07-22 06:39:21 -03:00
gstfacedetect.h facedetect: new property to control bus messages updates 2013-08-23 13:12:28 +02:00
gstgrabcut.cpp grabcut: Add GrabCut segmentation element 2013-07-17 11:28:28 +02:00
gstgrabcut.h grabcut: Add GrabCut segmentation element 2013-07-17 11:28:28 +02:00
gsthanddetect.c handdetect: Use already mapped image 2014-07-04 21:13:49 -04:00
gsthanddetect.h handdetect: Use already mapped image 2014-07-04 21:13:49 -04:00
gstmotioncells.c motioncells: improve logging 2014-05-30 16:58:59 -03:00
gstmotioncells.h Fix FSF address 2012-11-04 00:09:59 +00:00
gstopencv.c opencv: Add disparity-map calculation element 2013-08-23 11:58:21 +02:00
gstopencvutils.c opencv: Fix indention 2013-08-23 12:01:32 +02:00
gstopencvutils.h Fix FSF address 2012-11-04 00:09:59 +00:00
gstopencvvideofilter.c cvvideofilter: Don't try to make buffer writable 2014-07-04 21:13:11 -04:00
gstopencvvideofilter.h Fix FSF address 2012-11-04 00:09:59 +00:00
gstpyramidsegment.c pyramidsegment: Release image when changing caps or reusing the element 2014-06-30 00:12:26 +02:00
gstpyramidsegment.h Fix FSF address 2012-11-04 00:09:59 +00:00
gstretinex.c opencv: Add colour image enhancement element based on Retinex algorithm 2013-05-27 11:27:20 +02:00
gstretinex.h opencv: Add colour image enhancement element based on Retinex algorithm 2013-05-27 11:27:20 +02:00
gstsegmentation.cpp segmentation: Release memory storage in finalize 2014-06-30 00:22:22 +02:00
gstsegmentation.h opencv: fixes build by moving the c++ header to gstsegmentation.cpp 2013-06-18 13:37:26 +02:00
gstskindetect.c opencv: Add skin color detection element 2013-05-23 11:05:28 +02:00
gstskindetect.h opencv: Add skin color detection element 2013-05-23 11:05:28 +02:00
gsttemplatematch.c opencv templatematch: Set caps to BGR order 2014-07-28 14:22:27 -03:00
gsttemplatematch.h Fix FSF address 2012-11-04 00:09:59 +00:00
gsttextoverlay.c textoverlay: Release memory storage and resize image when caps change 2014-06-30 00:18:20 +02:00
gsttextoverlay.h Fix FSF address 2012-11-04 00:09:59 +00:00
Makefile.am opencv: Add disparity-map calculation element 2013-08-23 11:58:21 +02:00
MotionCells.cpp motioncells: Use no network API if not required 2014-07-11 13:25:18 +02:00
MotionCells.h motioncells: Remove unused private fields 2014-02-08 19:29:33 +01:00
motioncells_wrapper.cpp motioncells: use standard macro for boolean 2014-05-30 16:58:59 -03:00
motioncells_wrapper.h Fix FSF address 2012-11-04 00:09:59 +00:00
palm.xml opencv: add handdetect plugin, initial implementation 2013-03-01 00:14:54 +00:00