Thursday, May 29, 2008

Allocate/Release Memory function in opencv

Today I find I forget to release the Mat data.....This problem is result in running out of memory..

Allocation Release
cvCreateImage/cvCloneImage cvReleaseImage
cvCreateMat/cvCloneMat cvReleaseMat
cvCreateData cvReleaseData


Dynamic structures:
cvCreateMemStorage
cvMemStorageAlloc
cvReleaseMemStorage
cvClearMemStorage

No comments: