Ask Your Question

ocli5568's profile - activity

2012-09-06 23:56:45 -0600 received badge  Student (source)
2012-08-08 04:38:00 -0600 asked a question cvCvtColor Memory usage

Hello,

I am running a program that requires continuous usage of the cvCvtColor() method, however only once per iteration (approximately 100 hz). The usage is simple, I have two IplImage* variables, imageBGR and imageHSV where the BGR is converted to HSV by;

IplImage* imageBGR,imageHSV;
imageBGR = imread("blah.jpeg",3);
cvCvtColor(imageBGR, imageHSV, CV_BGR2HSV);

When I run the program, with nothing else in the background, cvCvtColor() continuously consumes about 10 MB every 5 seconds, accruing memory.

Does anyone know a solution, or heard of this problem before?