Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

optical flow algorithm

pruneaue
Beginner
309 Views

Hi

I'm trying to useipp optical flow algorithm OpticalFlowPyrLK.

The first two parameters are the pyramid structure (IppiPyramid) for the previous and next images.

My question:

Is the algorithm computes the pyramid layers or should I compute them myself before calling OpticalFlowPyrLK function. If the algorithm computes all the layers, How should I initialize the IppiPyramid structure.

I checked at the OpenCV implementation of the samealgorithm and it look like that the algorithm compute all the layers of the pyramid.

Regards

Eric

0 Kudos
1 Reply
Intel_C_Intel
Employee
309 Views

Hi!

In IPP all OpticalFlowPyrLK functions use already existed pyramid structure.

So at first you should create (allocate and fill) pyramid structures for both images (previous and next) and then call OpticalFlowPyrLK function.

By the way, first two parameters in OpticalFlowPyrLK functions are pointers to the pyramd structures, not the structures themself.

Regards

Ignat

0 Kudos
Reply