title: Contours opencv : How to eliminate small contours in a binary image
body: <p>I am currently working on image processing project. I am using Opencv2.3.1 with VC++.
  I have written the code such that, the input image is filtered to only blue color and converted to a binary image. The binary image has some small objects which I don't want. I wanted to eliminate those small objects, so i used openCV's <code>cvFindContours()</code> method to detect contours in Binary image. but the problem is I cant eliminate the small objects in the image output. I used <code>cvContourArea()</code> function , but didn't work properly.. , erode function also didn't work properly.</p>
  
  <p>So please someone help me with this problem..</p>
  
  <p><strong>The binary image which I obtained</strong> : </p>
  
  <p><img src="https://i.stack.imgur.com/YEyQQ.jpg" alt="enter image description here"></p>
  
  <p><strong>The result/output image which I want</strong> to obtain : </p>
  
  <p><img src="https://i.stack.imgur.com/tmYa8.jpg" alt="enter image description here"></p>