How to use Dense Inverse Search class on images to generate optical flow?

Hi, i’m a little confused over the documentation for DIS here.

I’d expect it to have a method that takes two images and outputs the dense optical flow, but i can’t find anything like that in the documentation.

Do I need to pass this class to another method? How can I generate optical flow using this with python?

calc() from the
DenseOpticalFlow superclass seems to be, what you’re looking for ?

1 Like

how to create an instance:

That’s it, thanks!

I did see this but it didn’t say that it had been implemented in the DIS or come up in my IDE