title: How to remove single pixels on the borders of a blob?
body: <p>I have a binary image like shown below. How do I remove the single pixels on the borders of the blobs?</p>
  
  <p><img src="https://i.stack.imgur.com/qCMHa.png" alt="enter image description here"></p>
  
  <p>No need to give the full code if you don't want to, you can explain some algorithms or point me to the right direction.</p>