From 66ce62cd0dc66f0d86580ecd7d20bfb7a990a86d Mon Sep 17 00:00:00 2001 From: Yury Zemlyanskiy Date: Wed, 5 Sep 2012 14:39:33 +0400 Subject: [PATCH] Small fixed #3 --- modules/video/src/simpleflow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/video/src/simpleflow.cpp b/modules/video/src/simpleflow.cpp index d1471307dc..af99fc5f25 100644 --- a/modules/video/src/simpleflow.cpp +++ b/modules/video/src/simpleflow.cpp @@ -517,8 +517,8 @@ CV_EXPORTS_W void calcOpticalFlowSF(Mat& from, flow, averaging_radius, max_flow, - sigma_dist, - sigma_color); + (float)sigma_dist, + (float)sigma_color); calcOpticalFlowSingleScaleSF(curr_to_extended, curr_from_extended, @@ -526,8 +526,8 @@ CV_EXPORTS_W void calcOpticalFlowSF(Mat& from, flow_inv, averaging_radius, max_flow, - sigma_dist, - sigma_color); + (float)sigma_dist, + (float)sigma_color); removeOcclusions(flow, flow_inv, @@ -586,9 +586,9 @@ CV_EXPORTS_W void calcOpticalFlowSF(Mat& from, prev_from, confidence, flow, - (float)upscale_averaging_radius, + upscale_averaging_radius, (float)upscale_sigma_dist, - upscale_sigma_color); + (float)upscale_sigma_color); flow_inv = upscaleOpticalFlow(curr_rows, curr_cols,