How do I create an 2D intensity map from a PNG image?
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ewout van der Feltz
el 25 de Sept. de 2017
Comentada: Ewout van der Feltz
el 2 de Oct. de 2017
From an infrared microscope with limited software I'm able to obtain an intensity map with a color scale bar including corresponding values. The limited software only provides this map in PNG format. I'm able to read the image into MatLab but I haven't got the know-how to generate a visually similar intensity plot with its corresponding color scale bar (with its values). Could anybody help me on my way with the following image?

Any help would be greatly appreciated.
1 comentario
Walter Roberson
el 25 de Sept. de 2017
Is the question about how to examine a PNG image to determine the mapping between colors and intensity values, so that given intensity values you can reproduce the appropriate output? So this is about "reverse engineering" a colorbar ?
If so then there have been several Questions about that.
Respuesta aceptada
Chad Greene
el 25 de Sept. de 2017
That looks like your data are on a grid about 11x11 or so, and linearly interpolated between data points. To plot an 11x11 matrix, let's call it M, I think pcolor is the command you're looking for.
pcolor(M)
shading interp
And to set the color axis values use caxis:
colorbar
caxis([1.180 2.273])
Más respuestas (1)
Image Analyst
el 25 de Sept. de 2017
See similar problem I did for a thermal image. The attached program can do what you want if you adapt it.
0 comentarios
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!