title: Remove separated objects in an Image C#
body: <p>your help is much appreciated. I am using C# and EmguCV for image processing</p>
  
  <p>I have tried noise removal, but nothing happens. I also tried image median filter, and it only works on the first image, but it does not work on the second image. It only makes the second image blurry and the objects larger and more square-like. </p>
  
  <p>I want to <strong>remove obviously distinct objects</strong>(green ones)  in my image below so that it would turn all black because they are obviously separated and are not grouped unlike the second image below.</p>
  
  <p>Image 1:</p>
  
  <p><img src="https://i.stack.imgur.com/hJsDY.png" alt="It said that i need 10 reputation to post images, so this is image 1 :("></p>
  
  <p>At the same way, I want to do it in my image below, but <strong>remove only those objects -- (the black ones) -- that are not grouped/(lumped?)</strong> so that what remains on the image are the objects that are grouped/larger in scale?</p>
  
  <p>Image 2:</p>
  
  <p><img src="https://i.stack.imgur.com/B8IJh.png" alt="It said that i need 10 reputation to post images, so this is image 2 :("></p>
  
  <p>Thank you</p>