title: how can I merge this two image with python numpy and opencv?
body: <p>I have two binary images. The first is like this:</p>
  
  <p><a href="https://i.stack.imgur.com/NKDdd.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NKDdd.jpg" alt="enter image description here"></a></p>
  
  <p>and the last one is like this:</p>
  
  <p><a href="https://i.stack.imgur.com/iDYl2.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iDYl2.jpg" alt="enter image description here"></a></p>
  
  <p>They dont have the same sized curve. I want to add the second one's two white zones contained in the black zone to the first one's black zone.</p>
  
  <p>My code runs like this,but this a wrong answer:</p>
  
  <p><a href="https://i.stack.imgur.com/tVDOW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tVDOW.jpg" alt="enter image description here"></a></p>
  
  <p>The question is like this,and I want get the the finally image which I draw in picture with the <strong>the</strong> <strong>final</strong> <strong>image</strong>:</p>
  
  <p><a href="https://i.stack.imgur.com/DPyXv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DPyXv.jpg" alt="enter image description here"></a></p>
  
  <p>How can I achieve this task?</p>