Fade away a particular colour in coloured image.

2 visualizzazioni (ultimi 30 giorni)
Vrinda
Vrinda il 21 Dic 2014
Risposto: Image Analyst il 21 Dic 2014
I have a coloured image. There are some bright yellow-ish spots. I am doing some image processing in the green channel of that image. But I don't want these bright yellow-ish spots to get detected. Is there any way?

Risposte (1)

Image Analyst
Image Analyst il 21 Dic 2014
See my color segmentation demos in my file exchange. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862. Basically, find the yellow and zero it out from your image. You can do it from RGb color space, or HSV color space, like my icon to the left.
In RGB space, look for pixels where both the green and red channel have high values, then mask it out.
In HSV color space, look at the Hue channel and zero out yellow, then transform back to RGB space. Kind of the opposite masking like I do below in my tutorial.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by