how to remove blue color from img

37 views (last 30 days)
how can i remove only blue color from img??

Accepted Answer

Image Analyst
Image Analyst on 9 Jan 2015
How about
rgbImage(:,:,3) = 0; % Remove all blue components from every pixel.
Otherwise, attach your image (like most other people who want image processing advice do) and explain what you mean.
  4 Comments
bindhu a
bindhu a on 27 Jun 2017
hi.. how do i remove yellow color cast... i tried reducing the pixel values of red and green channel but could not... how can i determine which color (color cast) dominates the image and by how many percentage?
Image Analyst
Image Analyst on 27 Jun 2017
That should do it. Try using colorcloud() to see the 3-D color gamut.

Sign in to comment.

More Answers (1)

Faaiza Rashid
Faaiza Rashid on 17 Oct 2018
Edited: Image Analyst on 17 Oct 2018
How do I remove this blue mark from attached image?
  1 Comment
Image Analyst
Image Analyst on 17 Oct 2018
Edited: Image Analyst on 17 Oct 2018
Explain in detail what "remove" means to you, keeping in mind that images must remain rectangular, not have irregular "holes" in them. Do you want to make it all solid, pure black? Do you want it to have the same coloration as the lighter skin? Why do you need to remove it anyway? It looks like you probably are interested in the dark melanin regions so why can't you just find the blue and ignore it? Have you tried the Color Thresholder app on the Apps tab or the tool ribbon? If not, why not?

Sign in to comment.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!