How to return IplImage Array

asked 2013-05-25 09:00:14 -0500

123ezone gravatar image

I want to create an image array using IplImage.Here is my code for that.But it provides some memory leaks.Please help me with this to solve this problem.

    IplImage *result[200];  
    for(int i=0;i<160;i++)
{
    result[i]=cvCreateImage(cvGetSize(Segimg), 8, 1);
}
    *result=method();

cvNamedWindow("B:");
cvShowImage("B:", result[1]);
cvWaitKey(0);
cvDestroyWindow("B:");

cvReleaseImage(&result[1]);
edit retag flag offensive close merge delete