Small fixes for SimpleFlow algorithm

+ Fixed warnings
+ Add new function calcOpticalFlow with smaller number of arguments
+ Add asserts to algorithm and remove 'exit(1)'
This commit is contained in:
Yury Zemlyanskiy
2012-08-31 13:27:14 +04:00
committed by Vadim Pisarevsky
parent 784c09d6f9
commit 1fde184192
5 changed files with 32 additions and 22 deletions

View File

@@ -135,7 +135,7 @@ static bool isFlowCorrect(float u) {
}
static float calc_rmse(Mat flow1, Mat flow2) {
float sum;
float sum = 0;
int counter = 0;
const int rows = flow1.rows;
const int cols = flow1.cols;