Recent versions of Mathematica contain OpenCVLink, presumably for support of image processing routines in WL. Its internal nature means that it is, understandably, relatively incomplete and undocumented.
I have some optic flow calculations to do, and, indeed, I see that two CUDA implementations are available,
but their parameters are not as easily decipherable as some of the other implementations ($Dilation for example).
I was wondering if anyone out there had successfully parsed the unparsable or, barring that, someone has a .mc link that uses OpenCV that I can just steal as a template.Maybe even WRI could think of releasing some of these incomplete undocumented links to the GitHub-o-verse where the public could enhance and refine them?
I understand it would be useful to add usage to our OpenCVLink functions and we'll consider putting some effort in doing so. But, keep in mind that we have them so that we use them one way or the other with WL functions.
$OpticalFlowFarneback is the method used in ImageDisplacements. You can access $OpticalFlowDualTVL1 using the undocumented Method->"TotalVariation", but our tests show that this method is not giving results of consistent quality and that's why we haven't exposed it.
OK great, thank you- good to know about the Dual TVL 1... I know precisely what you're talking about re: consistency, seems that things have to be 'just right' for it to work. Also, I didn't know the Farneback is presently used in ImageDisplacements so I'll play around there also.
Thanks for getting back on this-