ofxOpenCV Optical Flow with IplImage


Having trouble with the cvCalcOpticalFlowFarneback function that I have used many times with the add-on successfully in pervious versions of OF. I normally pass in CvArr* with the getCvImage() function which is an lplImage* to the cvCalcOpticalFlowFarneback function and it works as expected. But now there is the error:
Reference to type 'const cv::_InputArray' could not bind to an rvalue of type 'IplImage *' (aka '_IplImage *')
I can convert the lplImages to cv::Mat and then use those, but seems like the data copy will slow things down.

I think the ⁨addons⁩ ▸ ⁨ofxOpenCv⁩ ▸ ⁨libs⁩ ▸ ⁨opencv⁩ ▸ ⁨include⁩ ▸ ⁨opencv2⁩ ▸ ⁨video ▸ ⁩tracking_c.h file is missing so the CvArr* arguments are not available.

I am using OF v.0.11.0 on OSX 10.14.6

Any thoughts are much appreciated.