I have an openCV application that tracks 3 different colours and draws lines between where it is tracking. I have to keep this application running for a few hours but after about 40 minutes it tells me my mac osx start up disk has no more space available for application memory. Is there a way to flush the memory so that I can keep this running?
IplImage* imgYellowThresh1 = GetThresholdedImage1(frame,1);
double moment10 = cvGetSpatialMoment(moments_yellow, 1, 0);
double moment01 = cvGetSpatialMoment(moments_yellow, 0, 1);
double area = cvGetCentralMoment(moments_yellow, 0, 0);
so I do this for 2 other colours, add then to the frame
cvReleaseImage(&imgYellowThresh1);
delete moments_yellow;