mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
fixed sample for new signature of calcOpticalFlowPyrLK
This commit is contained in:
parent
bddff7b386
commit
1d2c6ef410
@ -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++ )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user