i have passed a lot of time searching on how to convert from cv::Mat or CvMat to CvArr but with no gain ,please help me in that,thanks.
When I need to do that I just use :
IplImage tmp = image;
With image a Mat variable.