title: resize rectangles using cvTransform and cvGetAffineTransform openCv
body: <p>iam dealing with multiscale images , 3 sizes : original , half &amp; double
  i extract the connected components from each of them separately then do some computations</p>
  
  <p>finally i want to map the bounding rectangles of the half &amp; double scale connected components to their original location and size in the original image</p>
  
  <p>here's my code of resizing and relocating the bounding rectangle </p>
  
  <pre><code>        Matrix&lt;int&gt; src = new Matrix&lt;int&gt;(3, 2,3);
          Matrix&lt;int&gt; dst = new Matrix&lt;int&gt;(3, 2,2);
  
          IntPtr mat = CvInvoke.cvCreateMat(2, 3, MAT_DEPTH.CV_32F);
  
          src[0,0]=componentBRect.X;
          src[0,1]=componentBRect.Y ;
          src[1,0]=componentBRect.Right;
          src[1,1]=componentBRect.Y;
          src[2,0]=componentBRect.X;
          src[2,1]=componentBRect.Bottom;
  
  
  
  
  
          CvInvoke.cvGetAffineTransform(img2, img, mat); //img is the original image &amp; img2 has been resized to 1/2 imgWidth and 1/2 imgHeight
  
          CvInvoke.cvTransform(src.Ptr, dst.Ptr, mat, IntPtr.Zero);
  </code></pre>
  
  <p>it's supposed to get dst points reszied and relocated
  but unfortunately the same points are returned again , i think there's a problem with getAffineTransform as it returns an identity matrix</p>
  
  <pre><code> mat= 
   |1 0 0 |
   |0 1 0 | !!
  </code></pre>
  
  <p>Any Suggestions ?? or is there another way to do what i want without using Affine transformation</p>
  
  <p>Thanks in advance</p>