fixed compile error on Windows

pull/31/head
Vadim Pisarevsky 13 years ago
parent 54a202b3d5
commit 53fdae93bd
  1. 2
      samples/cpp/simpleflow_demo.cpp

@ -131,7 +131,7 @@ static bool readOpticalFlowFromFile(FILE* file, Mat& flow) {
}
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) {

Loading…
Cancel
Save