title: Drawing on an image using emgu cv C++
body: <p>I am having difficulties figuring out how to draw a simple rectangle on an image using emgu cv. I'm using VS 2010 Express. I have a User Interface in which I am displaying a live video feed in a picture box on a panel which I have created using the .net framework. Now I would like to draw a clear rectangle in the middle of this feed, as that is where my code is focused on, and I need the user to see how to line up the camera and the object of interest so that it is in the rectangle. This is what I have so far in terms of drawing the rectangle on the frames from the camera</p>
  
  <pre><code>cv::Scalar red(0,0,255);
  System::Drawing::Rectangle Rect = System::Drawing::Rectangle(120, 160, 150, 150);
  frameColorDisplay-&gt;Draw(Rect, red, 2);
  </code></pre>
  
  <p>and this is the error that I'm receiving</p>
  
  <pre><code>BAOTFISInterface.cpp(1067): error C2664: 'void     Emgu::CV::Image&lt;TColor,TDepth&gt;::Draw(Emgu::CV::Seq&lt;T&gt; ^,Emgu::CV::Structure::Bgr,int)' : cannot convert parameter 1 from 'System::Drawing::Rectangle' to 'Emgu::CV::Seq&lt;T&gt; ^'
  5&gt;          with
  5&gt;          [
  5&gt;              TColor=Emgu::CV::Structure::Bgr,
  5&gt;              TDepth=unsigned char,
  5&gt;              T=System::Drawing::Point
  5&gt;          ]
  5&gt;          and
  5&gt;          [
  5&gt;              T=System::Drawing::Point
  5&gt;          ]
  5&gt;          No user-defined-conversion operator available, or
  5&gt;          No user-defined-conversion operator available that can perform this conversion, or    
  
  the operator cannot be called
  </code></pre>
  
  <p>I'm not sure why it's trying to convert from Rectangle to a Sequence? As far as I know, I'm calling the function properly according to the Emgu CV documentation. Does anyone have any insight into this issue? </p>