title: C++ Place an image on top of another image in a certain location
body: <p>I'm looking for a way to place on image on top of another image at a set location.</p>
  
  <p>I have been able to place images on top of each other using <code>cv::addWeighted</code> but when I searched for this particular problem, there wasn't any posts that I could find relating to <code>C++</code>.</p>
  
  <p><strong>Quick Example:</strong></p>
  
  <p><strong><code>200x200</code> Red Square &amp;  <code>100x100</code> Blue Square</strong></p>
  
  <p><img src="https://i.stack.imgur.com/HJMRl.png" alt="enter image description here"> <strong>&amp;</strong> <img src="https://i.stack.imgur.com/yiSHq.png" alt="enter image description here"></p>
  
  <p><strong>Blue Square on the Red Square at <code>70x70</code> (From top left corner Pixel of Blue Square)</strong></p>
  
  <p><img src="https://i.stack.imgur.com/19EY7.png" alt="enter image description here"></p>