From 53fdae93bdcce290f042eb42366b56b52a89006d Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Fri, 7 Sep 2012 15:25:32 +0400 Subject: [PATCH] fixed compile error on Windows --- samples/cpp/simpleflow_demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cpp/simpleflow_demo.cpp b/samples/cpp/simpleflow_demo.cpp index 2727fe6..a864ebc 100644 --- a/samples/cpp/simpleflow_demo.cpp +++ b/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) { -- 2.7.4