Borrar filtros
Borrar filtros

How to convert False color Images to Black & White?

4 visualizaciones (últimos 30 días)
Manoj Kumar
Manoj Kumar el 3 de Jun. de 2014
Comentada: Image Analyst el 14 de Mzo. de 2017
Hi, I have an Image and I wanted that to convert into BW. But when I use im2bw(), it is not showing the black & white image. I here by attach the image.
Thank you...

Respuesta aceptada

Image Analyst
Image Analyst el 3 de Jun. de 2014
I can't see the image. If you use rgb2gray() you probably won't get anything that makes sense. You really need to have the color map that was used to pseudocolor the image. If you have that you can recover the original gray scale image using
grayImage = rgb2ind(rgbImage, colorMap);
Then you can threshold that grayscale image to get a binary image. By the way, your image link is broken.
  5 comentarios
Image Analyst
Image Analyst el 5 de Jun. de 2014
I'm not sure what you mean, but see my attached freehand masking demo and see if that does what you want.
Manoj Kumar
Manoj Kumar el 6 de Jun. de 2014
It worked, thank you..

Iniciar sesión para comentar.

Más respuestas (1)

pallavi awate
pallavi awate el 14 de Mzo. de 2017
hello sir, i have to count the object from the image.but their is some problem.when two object is too closed then it shows this is one object.now how i can solve this.please help me.can u send me the code for this.please please please..
  1 comentario
Image Analyst
Image Analyst el 14 de Mzo. de 2017
The code would have to be optimized for your image(s), which you have not provided.

Iniciar sesión para comentar.

Categorías

Más información sobre Modify Image Colors en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by