write a gray scale image to a color image and keep the intensities unchanged
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi All
I am pretty new in matlab. I have a set of images that are "uint16" and gray sclae. I am going to convert the images to a different colormap, say jet or hot, and write them. But I do not want the pixel intensity changes. Is it possible at all? Or as soon as I change the colormap ever pixel intensity is changed? Many thanks in advance!
0 comentarios
Respuestas (1)
Image Analyst
el 15 de Dic. de 2019
How are you defining intensity? If the color goes from gray to some vivid hue, obviously something has changed in the display. But it's only the image as displayed that is changed. You can apply whatever colormap you want with imshow() or colormap() and the underlying gray scale image variable does not change -- it's only how it looks that is different. So if you did anything with the gray scale image like filtered it, thresholded it, saved it to disk, or whatever, it will be the same regardless of what it looks like in the axes on the figure window.
Ver también
Categorías
Más información sobre Red en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!