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:

committed by
Vadim Pisarevsky

parent
784c09d6f9
commit
1fde184192
@@ -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;
|
||||
|
Reference in New Issue
Block a user