title: How to save multiple images with different names using OpenCV function cvSaveImage()?
body: <p>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 <em>cvSaveImage</em>. for example:    </p>
  
  <pre><code>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(&amp;img);    
  cvDestroyWindow("Testimage");    
  index++;
  </code></pre>
  
  <p>This is inside a loop and it does not work (for now is just 1 photo).If i change cvSaveImage atribute to :   </p>
  
  <pre><code> cvSaveImage("d:\\d.bmp", imgA);
  </code></pre>
  
  <p>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?</p>