Matlab image processing

조회 수: 7 (최근 30일)
Bob
Bob 2011년 11월 17일
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.

답변 (3개)

Walter Roberson
Walter Roberson 2011년 11월 17일
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
Walter Roberson
Walter Roberson 2011년 11월 21일
jacobian quiver is not a matrix form: it is the name of two applicable routines.
Bob
Bob 2011년 11월 21일
@ walter please help me in writing the code to mark the white material and to mark the pores.please help me in solving me......

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2011년 11월 17일
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
Sven
Sven 2011년 11월 21일
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
Image Analyst 2011년 11월 17일
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
Bob
Bob 2011년 11월 17일
@ Image analyst http://s1102.photobucket.com/albums/g458/bkkodali/
This is the link.Please see it and reply me
Image Analyst
Image Analyst 2011년 11월 21일
Can you upload the grayscale image itself, not a screenshot of a figure with axes labels, tick marks, etc.? Just the plain, bare image.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by