GPU PyrLKOpticalFlow makes TouchDesigner Crash.

asked 2015-02-19 03:03:03 -0600

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

edit retag flag offensive close merge delete

Comments

What version of OpenCV are you using?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-02-19 07:44:42 -0600 )edit
1

Version 2.4.9

Todd9 gravatar imageTodd9 ( 2015-02-25 05:32:15 -0600 )edit