How to filter an RGB image and transform into an BW one.
Mostra commenti meno recenti
I have been trying to do that:
http://prntscr.com/umv66 -> http://goo.gl/Bgmv2 (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: 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:
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!
2 Commenti
Walter Roberson
il 1 Mar 2013
Is there a particular reason you choose saturation rather than hue?
Shizuka
il 1 Mar 2013
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Color in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!