diwi/PixelFlow

Read optical flow vectors

DasPez opened this issue · 1 comments

Hi,
I want to calculate the average optical flow in an area of my camera feed.
Is it possible to access the velocity vector of a certain pixel?
opticalflow.getVelocity() throws a null pointer exeption when I try to print one element of the float[] to console.

diwi commented

I am unable to reproduce the nullpointer exception. Can you post a short example?

getVelocity(float[] data_F4) should return a valid array in any case.