title: Transposing a Mat image into a larger Mat image, Opencv
body: <p>I have written a function to take a Mat image in and transpose it onto the center of a blank image three times the size. I have written function to do so but I feel it can be improved in terms of  efficiency.</p>
  
  <pre><code>void transposeFrame( cv::Mat &amp;frame){
  
     Mat new_frame( frame.rows * 3, frame.cols * 3, CV_8UC3, Scalar(0,0,255));
  
     Rect dim = Rect( frame.rows, frame.cols, frame.rows * 2, frame.cols * 2);
  
     Mat subview = new_frame(dim);
  
     frame.copyTo(subview);
     frame = subview;
  }
  </code></pre>
  
  <p>Is there a better to preform this operation?</p>