Matlab image processing
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, This is Bobby.My task is to apply gradient plot for this image.I am posting the image here. http://www.sendspace.com/file/e5m9dr http://www.sendspace.com/file/rrkbfc
In the figure e5m9dr there are so many colors like blue,green,yellow.But I wanted to apply different colors for the figure to identify the variation by the elevation of pores.By zooming in the picture we can see some yellow ones which is a pore and had a little white surface.We can clearly identify it by observing the two figures.Please let me know how to apply gradient plot for it and Please help to apply different shades of colors to it.
0 comentarios
Respuestas (3)
Walter Roberson
el 17 de Nov. de 2011
My observation, noted in one of your previous threads, is that the first image (e5m9dr) is already coded by elevation of the surface, with red being lowest and blue being highest. I gave specific coordinate examples of depressions (which could be small pores) in the previous discussion.
What you need to calculate is relative elevation changes: elevation compared to what is nearby. That is what a gradient plot is.
As I noted before, though, there are a minimum of two directions that the gradient needs to be measured in for each point, but you only have one plot location per point. You must decide how you want to handle having two simultaneous direction deltas in one location. I already gave a suggestion about one representation method.
10 comentarios
Walter Roberson
el 21 de Nov. de 2011
jacobian quiver is not a matrix form: it is the name of two applicable routines.
Image Analyst
el 17 de Nov. de 2011
You say "I wanted to apply different colors for the figure to identify the variation by the elevation of pores" so you just need to set up your colormap to be the way you want it (instead of the current blue yellow green map which you don't like) and then call colormap() passing it your custom colormap to apply that colormap to your elevation image.
1 comentario
Sven
el 21 de Nov. de 2011
Good suggestion IA. The main problem is that Bobby seems unable/unwilling to actually run any MATLAB code, let alone provide us with that code to troubleshoot.
You see, the images he's provided were actually created by me from his original data with a short script (which has now been deleted because his original question was deleted for no good reason (although I have suspicions that there was in fact a reason... just not a good one)). So rather than run that original script and simply change the colormap, he's instead stuck with an RGB .png image which is basically just a screenshot of one view of his original data - axes labels, tick marks and all.
Sigh... and the circus goes on...
:)
Image Analyst
el 17 de Nov. de 2011
Haven't we discussed this before? No one likes to go through 42 clicks just to see your image. Put it somewhere where it can be seen immediately, like tinypic.com.
2 comentarios
Image Analyst
el 21 de Nov. de 2011
Can you upload the grayscale image itself, not a screenshot of a figure with axes labels, tick marks, etc.? Just the plain, bare image.
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading 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!