IplImage* c_left;
cvReleaseImage(&c_left);
cvmat* img1r;
cvReleaseMat(&img1r);
mat img2;
img2.release();