Contours opencv : How to eliminate small contours in a binary image.
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 cvFindConour's method to detect contours in Binary image. but the problem is I cant eliminate the small objects in the image output. I used cvContourArea function , but didn't work properly.. , erode function also didn't work properly.

So please someone help me with this problem..

The binary image which I obtained : http://s13.postimage.org/iifbtr87r/bin_img.jpg
The result/ output image which I want to Obtain : http://s18.postimage.org/wmzjl0nhl/result_img.jpg 


Contours opencv : How to eliminate small contours in a binary image.
===

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 cvFindConour's method to detect contours in Binary image. but the problem is I cant eliminate the small objects in the image output. I used cvContourArea function , but didn't work properly.. , erode function also didn't work properly.

So please someone help me with this problem..

The binary image which I obtained : http://s13.postimage.org/iifbtr87r/bin_img.jpg
The result/ output image which I want to Obtain : http://s18.postimage.org/wmzjl0nhl/result_img.jpg 

