equivalent to CopyTo() for CvMat*

asked 2015-06-29 18:53:30 -0600

sasmn gravatar image

as OpenCv documentation mentioned , Mat::copyTo()is using an input of type Mat. http://docs.opencv.org/modules/core/d...

I need an equivalent function that takes an input of type CvMat* .

edit retag flag offensive close merge delete

Comments

2

please try to avoid opencv's arcane c-api. it is only around for legacy/maintenance reasons, you should write any new code in c++.

http://docs.opencv.org/modules/core/d...

berak gravatar imageberak ( 2015-06-29 23:50:35 -0600 )edit

Just add a Mat wrapper around the CvMat pointer and it will solve your problem, but even better, just use the C++ interface like @berak suggested.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-06-30 06:33:27 -0600 )edit