フィルターのクリア

colormap for openings in crack

2 ビュー (過去 30 日間)
Duncan
Duncan 2014 年 8 月 29 日
コメント済み: Image Analyst 2014 年 9 月 10 日
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.

回答 (1 件)

Image Analyst
Image Analyst 2014 年 8 月 29 日
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)
imshow(distanceMapImage, []);
axis on;
caxis([0, 10]);
colormap(jet(256));
colorbar;
Post your distance map if you can't figure it out.
  11 件のコメント
Image Analyst
Image Analyst 2014 年 8 月 30 日
Then you need to get a binary image of just branches. Solid, not outlines. You can do this by connecting the open ends and calling imfill. Then call bwdist() and colormap().
Image Analyst
Image Analyst 2014 年 9 月 10 日
Duncan, haven't heard back from you. Did you get it figured out?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeBlue についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by