colormap for openings in crack
4 views (last 30 days)
Show older comments
Duncan on 29 Aug 2014
Commented: Image Analyst on 10 Sep 2014
I have this image and i would like to produce a colormap.
this is an edge detected image of a crack on concrete. I have already found the distances and coordinate points between each pixel. Now what I would like to do is create a colormap between the edges showing according to the crack opening distances.
Any ideas of how I can go about doing this?
I've thought about plotting straight lines with different line colors but it doesn't look as nice.
Image Analyst on 29 Aug 2014
Display, with imshow(), the distance map of the region in between the lines. Use caxis() to tell it what value each end of the colormap should correspond to. Then create a colormap to correspond to the distances, e.g. jet(256). Then call colormap(yourColorMap). For example (untested)
Post your distance map if you can't figure it out.
Find more on Colormaps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!