From 1ea1cafa003e8953072b6ebcb5c149e434d396b1 Mon Sep 17 00:00:00 2001 From: Ernest Galbrun Date: Thu, 3 Jul 2014 12:07:19 +0200 Subject: [PATCH] added modification on cudaoptflow/include/opencv2/cudaoptflow.hpp --- .../cudaoptflow/include/opencv2/cudaoptflow.hpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/modules/cudaoptflow/include/opencv2/cudaoptflow.hpp b/modules/cudaoptflow/include/opencv2/cudaoptflow.hpp index 220bb34573..2cd78fac54 100644 --- a/modules/cudaoptflow/include/opencv2/cudaoptflow.hpp +++ b/modules/cudaoptflow/include/opencv2/cudaoptflow.hpp @@ -210,6 +210,11 @@ public: * In theory, it should have a small value in order to maintain both parts in correspondence. * The method is stable for a large range of values of this parameter. */ + + double gamma; + /** + * parameter for robustness + */ double theta; /** @@ -241,12 +246,13 @@ public: bool useInitialFlow; private: - void procOneScale(const GpuMat& I0, const GpuMat& I1, GpuMat& u1, GpuMat& u2); + void procOneScale(const GpuMat& I0, const GpuMat& I1, GpuMat& u1, GpuMat& u2, GpuMat& u3); std::vector I0s; std::vector I1s; std::vector u1s; - std::vector u2s; + std::vector u2s; + std::vector u3s; GpuMat I1x_buf; GpuMat I1y_buf; @@ -261,7 +267,9 @@ private: GpuMat p11_buf; GpuMat p12_buf; GpuMat p21_buf; - GpuMat p22_buf; + GpuMat p22_buf; + GpuMat p31_buf; + GpuMat p32_buf; GpuMat diff_buf; GpuMat norm_buf;