fixed sample for new signature of calcOpticalFlowPyrLK

This commit is contained in:
Marina Kolpakova 2012-03-19 12:55:48 +00:00
parent bddff7b386
commit 1d2c6ef410

View File

@ -91,7 +91,7 @@ int main( int argc, char** argv )
if(prevGray.empty()) if(prevGray.empty())
gray.copyTo(prevGray); gray.copyTo(prevGray);
calcOpticalFlowPyrLK(prevGray, gray, points[0], points[1], status, err, winSize, calcOpticalFlowPyrLK(prevGray, gray, points[0], points[1], status, err, winSize,
3, termcrit, 0, 0, 0.001); 3, termcrit, 0, 0.001);
size_t i, k; size_t i, k;
for( i = k = 0; i < points[1].size(); i++ ) for( i = k = 0; i < points[1].size(); i++ )
{ {