title: save an image in a complete path
body: <p>I am using OpenCV library and visual studio 2013. I would like just to save the result image in a complete path. It's ok for the same path but <code>c:\\...</code> doesn't work.
  I tried to use both forward <code>\</code> and back <code>/</code>, the result looked the same.
  Here is the code:</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;opencv2/imgproc/imgproc.hpp&gt;
  #include&lt;opencv2/highgui/highgui.hpp&gt;
  
  using namespace std;
  using namespace cv;
  
  int main()
  {
  
  Mat src, dst;
  float sum;
  
  /// Load an image
  src = imread("lena.jpg", CV_LOAD_IMAGE_GRAYSCALE);
  
  if (!src.data)
  {
      return -1;
  }
  
  // define the kernel
  float Kernel[3][3] = {
      { 1 / 9.0, 1 / 9.0, 1 / 9.0 },
      { 1 / 9.0, 1 / 9.0, 1 / 9.0 },
      { 1 / 9.0, 1 / 9.0, 1 / 9.0 }
  };
  dst = src.clone();
  for (int y = 0; y &lt; src.rows; y++)
  for (int x = 0; x &lt; src.cols; x++)
      dst.at&lt;uchar&gt;(y, x) = 0.0;
  //convolution operation
  for (int y = 1; y &lt; src.rows - 1; y++){
      for (int x = 1; x &lt; src.cols - 1; x++){
          sum = 0.0;
          for (int k = -1; k &lt;= 1; k++){
              for (int j = -1; j &lt;= 1; j++){
                  sum = sum + Kernel[j + 1][k + 1] * src.at&lt;uchar&gt;(y - j, x - k);
              }
          }
          dst.at&lt;uchar&gt;(y, x) = sum;
      }
  }
  
  namedWindow("final");
  imshow("final", dst);
  
  namedWindow("initial");
  imshow("initial", src);
  vector&lt;int&gt; compression_params; //vector that stores the compression parameters of the image
  
  compression_params.push_back(CV_IMWRITE_JPEG_QUALITY); //specify the compression technique
  
  compression_params.push_back(100); //specify the compression quality
  
  bool bSuccess = imwrite("filtre.jpg", dst, compression_params);//ok
      bool bSucccess = imwrite("D:/trunk/jpwl/Release/nouveau_dossier/filtre.jpg", dst, compression_params);// not ok
      bool bSuccces = imwrite("D:\trunk\jpwl\Release\nouveau_dossier\filtre.jpg", dst, compression_params);// not ok
  
  waitKey();
  
  
  return 0;
  }
  </code></pre>