Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the code is ok, i was facing the same problem and the cause was that i was passing wrong images in to the calcOpticalFlowPyrLK() function. According to the documentation the images should be 8-bit (i.e. grayscale) both of them, so check if this is the problem or not. In my case i was passing rgb images, while the points were from a binary.

the code is ok, i was facing the same problem and the cause was that i was passing wrong images in to the calcOpticalFlowPyrLK() function. According to the documentation the images should be 8-bit (i.e. grayscale) both of them, so check if this is the problem or not. In my case i was passing rgb images, while the input points were from a binary.