title: Wanting to live-mirror video in OpenCV on OSX, not sure where to start
body: <p>If it isn't already obvious, this is my first day playing around with OpenCV. 
  What I am hoping to do is mirror frame2, and then upsample it. </p>
  
  <p>I am not sure how to use a matrix operation on these frames which are of type IplImage. How could I mirror my frame2, and then upsample it to the Webcam2 window? Below is my code:</p>
  
  <pre><code> #include "cv.h" 
   #include "highgui.h" 
   #include &lt;stdio.h&gt;  
  
  
  
   // A Simple Camera Capture Framework 
   int main() {
     CvCapture* capture = cvCaptureFromCAM( CV_CAP_ANY );
     if ( !capture ) {
       fprintf( stderr, "ERROR: capture is NULL \n" );
       getchar();
       return -1;
     }
     // Create a window in which the captured images will be presented
     cvNamedWindow( "Webcam", CV_WINDOW_AUTOSIZE );
     cvNamedWindow( "Webcam2", CV_WINDOW_AUTOSIZE );
     // Show the image captured from the camera in the window and repeat
     while ( 1 ) {
       // Get one frame
       IplImage* frame = cvQueryFrame( capture );
       IplImage* frame2 = cvCreateImage(cvSize (frame-&gt;width*2, frame-&gt;height*2), 
       frame-&gt;depth, frame-&gt;nChannels);
       cvPyrUp (frame, frame2);
  
  
  
          if ( !frame ) {
         fprintf( stderr, "ERROR: frame is null...\n" );
         getchar();
         break;
       }
  
       cvShowImage( "Webcam", frame );
       cvShowImage( "Webcam2", frame2 );
       // Do not release the frame!
       //If ESC key pressed, Key=0x10001B under OpenCV 0.9.7(linux version),
       //remove higher bits using AND operator
       if ( (cvWaitKey(10) &amp; 255) == 27 ) break;
     }
     // Release the capture device housekeeping
     cvReleaseCapture( &amp;capture );
     cvDestroyWindow( "Webcam" );
     cvDestroyWindow( "Webcam2" );
     return 0;
   }
  </code></pre>