fixed compile error on Windows

This commit is contained in:
Vadim Pisarevsky 2012-09-07 15:25:32 +04:00
parent 54a202b3d5
commit 53fdae93bd

View File

@ -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) {