GPU PyrLKOpticalFlow makes TouchDesigner Crash.
I've mostly had success experimenting with writing cplusplus plug-ins for TouchDesigner that utilize OpenCV. (For more info on TouchDesigner go here: https://www.derivative.ca/)
So far, I have been able to use the Texture handed-off from TouchDesigner, download it to CPU memory, and run OpenCV functions on it, such as the CPU-based Lucas-Kanade Sparse Optical Flow algorithm. For an example result see: https://vimeo.com/114542945
The problem comes in when I try to invoke the GPU accelerated version. I've stripped everything else away and found that simply instantiating the cv::gpu::PyrLKOpticalFlow class causes TouchDesigner to crash.
It's also worth noting that I can get the GPU based function to run fine outside of the TouchDesigner plugin framework. For reasons unknown to me they won't play nice together.
You can find some info on TouchDesigner's DLL framework here: http://www.derivative.ca/wiki088/inde...
Thanks, Todd
What version of OpenCV are you using?
Version 2.4.9