opencv: segmentation: Ported to OpenCV version 3.1
authorVanessa Chipirras Navalon <vanechipi@qtec.com>
Fri, 1 Apr 2016 10:59:19 +0000 (12:59 +0200)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Fri, 1 Apr 2016 11:24:13 +0000 (12:24 +0100)
commit4e1aba092390c8f44358e7c4433fe108bb073197
treef3fa9db29f3f32a83b9dd952b438140453cef304
parent88a3b4da3c297f9f59bc833f9fde19e6345cd435
opencv: segmentation: Ported to OpenCV version 3.1

Add namespace bgsegm, replacement functions and Template class for new
OpenCV versions because these functions have been removed. cvarrToMat() is
added because it is compatible with all versions of OpenCV and the use of
class Mat constructor is eliminated, it is also deprecated in 3.X versions.

Use the namespace cv because some functions are called many times.

This patch keeps compatibility with 2.4

https://bugzilla.gnome.org/show_bug.cgi?id=760473
ext/opencv/gstsegmentation.cpp
ext/opencv/gstsegmentation.h