Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to filter an RGB image and transform into an BW one

I have been trying to do that: -> (You can ignore the red lines, I just added them to illustrate the final objective)

So, what I've done in the first case was: Using MatLab, I transformed rgb -> hsv and picked up the s channel (a.k.a saturation). Then I used Otsu (called graythresh in matlab) to binarize and transform into a black and white picture. Everything worked perfectly.

Now, in the second case this doesn't work so well:

Base img( -> S Channel( ->Otsu(

As you can see, the Otsu filter becomes useless in this case. Is there any workaround or other way I should be taking? Thanks in advance!