Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 slowmovideo (0.5+git20190116-2) unstable; urgency=medium
 .
   * Apply patch for opencv4 to fix FTBFS. (Closes: #922598)
   * Bump standards version to 4.4.0.
Author: Gürkan Myczko <gurkan@phys.ethz.ch>
Bug-Debian: https://bugs.debian.org/922598

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2019-09-06

--- slowmovideo-0.5+git20190116.orig/src/slowmoVideo/project/flowSourceOpenCV_sV.cpp
+++ slowmovideo-0.5+git20190116/src/slowmoVideo/project/flowSourceOpenCV_sV.cpp
@@ -260,13 +260,13 @@ void FlowSourceOpenCV_sV::buildFlowOpenC
     dumpAlgosParams();
     cv::Mat_<cv::Point2f> flow;
     if (algo == 1) { // DualTVL1
-        cv::Ptr<cv::DenseOpticalFlow> tvl1 = cv::createOptFlow_DualTVL1();
-        tvl1->set("lambda", lambda);
-        tvl1->set("tau", tau);
-        tvl1->set("nscales", nscales);
-        tvl1->set("warps", warps);
-        tvl1->set("iterations", iterations);
-        tvl1->set("epsilon", epsilon);
+        cv::Ptr<cv::superres::DualTVL1OpticalFlow> tvl1 = cv::superres::createOptFlow_DualTVL1();
+        tvl1->setLambda(lambda);
+        tvl1->setTau(tau);
+        tvl1->setScalesNumber(nscales);
+        tvl1->setWarpingsNumber(warps);
+        tvl1->setIterations(iterations);
+        tvl1->setEpsilon(epsilon);
         tvl1->calc(prevgray, gray, flow);
     } else { // _FARN_
         // TODO: check to use prev flow as initial flow ? (flags)
--- slowmovideo-0.5+git20190116.orig/src/slowmoVideo/project/flowSourceOpenCV_sV.h
+++ slowmovideo-0.5+git20190116/src/slowmoVideo/project/flowSourceOpenCV_sV.h
@@ -22,6 +22,8 @@ the Free Software Foundation, either ver
 #include "opencv2/imgproc/imgproc.hpp"
 #include "opencv2/highgui/highgui.hpp"
 #include "opencv2/opencv_modules.hpp"
+#include "opencv2/superres/optical_flow.hpp"
+#include "opencv2/imgcodecs/legacy/constants_c.h"
 
 #if CV_MAJOR_VERSION == 2
 #include "opencv2/core/gpumat.hpp"
