title: Smoothing 2D contour with rough boundary in numpy array
body: <p>I have a contour that is represented in a numpy array in such a way that the boundary points have 1 and the rest are 0. An example image is shown below. How could I smooth this contour ?</p>
  <p>I am trying the get a contour that is smoother than the one in the image right now</p>
  <p><a href="https://i.stack.imgur.com/zLo0G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zLo0G.png" alt="enter image description here" /></a></p>