Opencv divide a contour in two sections
<p>I have a contour in Opencv with a convexity defect (the one in red) and I want to cut that contour in two parts, horizontally traversing that point, is there anyway to do it, so I just get the contour marked in yellow? 
<a href="https://i.stack.imgur.com/TpTzP.png" rel="nofollow noreferrer">Image describing the problem</a></p>

<p><a href="https://i.stack.imgur.com/TpTzP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TpTzP.png" alt="enter image description here"></a></p>