From f91b71eddeed426c2eb4a1f759067cb892574349 Mon Sep 17 00:00:00 2001 From: Vanessa Chipirras Navalon Date: Wed, 27 Jan 2016 16:51:13 +0100 Subject: [PATCH] opencv: retinex: Ported to OpenCV version 3.1 cvarrToMat() is added because it is compatible with all versions of Opencv and using the class constructor Mat is eliminated because is deprecated in 3.X versions. This keeps compatibility with 2.4. https://bugzilla.gnome.org/show_bug.cgi?id=760473 --- ext/opencv/gstretinex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opencv/gstretinex.cpp b/ext/opencv/gstretinex.cpp index 2e23d89139..a333914264 100644 --- a/ext/opencv/gstretinex.cpp +++ b/ext/opencv/gstretinex.cpp @@ -292,7 +292,7 @@ gst_retinex_transform_ip (GstBaseTransform * btrans, GstBuffer * buf) int gain = 128; int offset = 128; int filter_size; - Mat icvD (retinex->cvD, false); + Mat icvD = cvarrToMat(retinex->cvD, false); if (!gst_buffer_map (buf, &info, (GstMapFlags) GST_MAP_READWRITE)) { return GST_FLOW_ERROR;