Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Suggestions for optimizing filtration method.

I made using OpenCv a program, which first checks the most occurring color, and based on that color creates a mask, which then is used to create a binary image based on the mask.

The problem is though this solution doesn't seems so robust for certain color combination.
ex.

image description image descriptionimage description image description

But for some reason does it work perfectly on these pictures.. image description image description

The code is here.. http://pastebin.com/KujpZs6r

Any suggestion for improvements ?

Suggestions for optimizing filtration method.

I made using OpenCv a program, which first checks the most occurring color, and based on that color creates a mask, which then is used to create a binary image based on the mask.

The problem is though this solution doesn't seems so robust for certain color combination.
ex.

image description image descriptionimage description image description

But for some reason does it work perfectly on these pictures.. image description image descriptionhttp://imgur.com/V73gG1U) (http://imgur.com/tVtw75O,IAerON9#1)

The code is here.. http://pastebin.com/KujpZs6r

Any suggestion for improvements ?