mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
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
This commit is contained in:
parent
037f54d644
commit
f91b71edde
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue