Hy .what I am trying to do is load a bunch of images,resize them and save the resized image to another folder.it loads the images ,I checked ,and works ok , the only problem i have is with cvSaveImage. for example:
char num[350]="C:\\Users\\Alex\Desktop\\pozeTiles\\image";
char str[10];
char pmp[10]=".bmp";
itoa(index, str, 10);
strcat(num,str);
strcat(num,pmp);
cvNamedWindow("Testimage", HG_AUTOSIZE);
cvShowImage("Testimage", img);
IplImage *imgA = resizeImage(img,20,20, true);
cvSaveImage(num, imgA);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("Testimage");
index++;
This is inside a loop and it does not work (for now is just 1 photo).If i change cvSaveImage atribute to :
cvSaveImage("d:\\d.bmp", imgA);
it works.The problem is that i have multiple file and i cannot change the name for each one ..so can someone pls help me ?What parameter should i use so it should work?