how to remove blue color from img

 Respuesta aceptada

Image Analyst
Image Analyst el 9 de En. de 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 comentarios

Lukasz Jarod
Lukasz Jarod el 9 de En. de 2015
i want to remove that blue part of plate because in segmentation it choose as character , and there is no character that are blue so i came up with idea to remove that blue object by his collor.
Image Analyst
Image Analyst el 9 de En. de 2015
If you want to crop it off, I'd just convert to HSV colorspace with rgb2hsv. Then look at the S channel. The white/gray/black of the license plate will have low saturation because it's neutral colored, while the blue will have a high saturation because it's vividly colored. Threshold for low saturation and find the bounding box and crop.
Attached is one of my demos that looks for blue. You can adapt it if you want.
bindhu a
bindhu a el 27 de Jun. de 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 el 27 de Jun. de 2017
That should do it. Try using colorcloud() to see the 3-D color gamut.

Iniciar sesión para comentar.

Más respuestas (1)

Faaiza Rashid
Faaiza Rashid el 17 de Oct. de 2018
Editada: Image Analyst el 17 de Oct. de 2018

0 votos

How do I remove this blue mark from attached image?

1 comentario

Image Analyst
Image Analyst el 17 de Oct. de 2018
Editada: Image Analyst el 17 de Oct. de 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?

Iniciar sesión para comentar.

Categorías

Etiquetas

Preguntada:

el 9 de En. de 2015

Editada:

el 17 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by