Closed CCareaga closed 5 years ago
Hi! The framework is made for volumes not for 2d images. I should really yield a warning if someone tries to apply it on images (it thinks your y,x,channel image is a z,y,x volume)
Ahhh that makes sense, I was skeptical about it being for images but wasn't sure. It is very hard to find a GPU implementation of optical flow that is written in Python...
Thank you!
Did you try cppimport?
It's usally easier to just call a C++ implementation of an optical flow (e.g. from OpenCV).
pybind11
makes it easy to use Numpy-Arrays in C++ (https://pybind11.readthedocs.io/en/stable/advanced/pycpp/numpy.html).
I'm trying to use this library but when I run my images through I get all zeros... Here is my code:
This prints:
Is it maybe a problem with how I'm loading the images? Or am I mistaken and this is not supposed to be used on images? I am slightly confused because you stated that this repo is based off the OpenCV implementation, which does work on images...