Skip to content

Commit 53fdae9

Browse files
author
Vadim Pisarevsky
committed
fixed compile error on Windows
1 parent 54a202b commit 53fdae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/cpp/simpleflow_demo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static bool readOpticalFlowFromFile(FILE* file, Mat& flow) {
131131
}
132132

133133
static bool isFlowCorrect(float u) {
134-
return !isnan(u) && (fabs(u) < 1e9);
134+
return !cvIsNaN(u) && (fabs(u) < 1e9);
135135
}
136136

137137
static float calc_rmse(Mat flow1, Mat flow2) {

0 commit comments

Comments
 (0)