Commit 53fdae93 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed compile error on Windows

parent 54a202b3
...@@ -131,7 +131,7 @@ static bool readOpticalFlowFromFile(FILE* file, Mat& flow) { ...@@ -131,7 +131,7 @@ static bool readOpticalFlowFromFile(FILE* file, Mat& flow) {
} }
static bool isFlowCorrect(float u) { static bool isFlowCorrect(float u) {
return !isnan(u) && (fabs(u) < 1e9); return !cvIsNaN(u) && (fabs(u) < 1e9);
} }
static float calc_rmse(Mat flow1, Mat flow2) { static float calc_rmse(Mat flow1, Mat flow2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment