Color image with values from 0 to 1
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a color image that is read as a double when I load it to Matlab. When I try to visualize it using imshow all I see is white, since my image has values higher than 1 (max=35.8501 and min=23.4284). Does anyone knows how I can see the image, maintaining the color?
Thanks!
Respuestas (1)
Jan
el 31 de Mzo. de 2017
How is your color image defined? Color information is stored either by using doubles in the range [0, 1], or as unsigned integers in the range [0, intmax] for 8 or 16 bits.
I cannot guess what a color for the value 35.8501 might be and cannot suggest a method, which "maintains the color". What color is "35.8501"?
Perhaps a normalization helps:
high = max(Img(:));
low = min(Img(:))
RGB = (Img - low) / (high - low);
2 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!