title: How to rotate an image 45 degrees twice in matlab and keep the same size at the end?
body: <p>I want to :</p>
  
  <ol>
  <li>rotate an image (size 512x512) with 45 degrees.</li>
  <li>make some processing on it.</li>
  <li>rotate the image with -45 degrees.</li>
  </ol>
  
  <p>my problem is when i apply rotation with 45 degrees and -45 degrees, the size of the image changes and i want it to be the same.</p>