In a function like this
void ipl_in_ipl_out(IplImage* src, IplImage* dst) {
cv::Mat src_mat(src);
dst = cvCloneImage(&(IplImage) src_mat);
}
when out the function, there is no data in dst. And how to deep copy from cv::Mat to IplImage? I want to use cv::Mat to process, but in and out of a function should be IplImage*.
I've also tried to make src_mat as a Class member, but failed. And tried methods in Converting cv::Mat to IplImage*.
So how to deal with this problem? Thanks!