how to find mesh of an image?

9 ビュー (過去 30 日間)
ramya
ramya 2018 年 4 月 16 日
コメント済み: Walter Roberson 2018 年 4 月 16 日
i have an image .suggest some code how to start with it.new to generating mesh
  7 件のコメント
Walter Roberson
Walter Roberson 2018 年 4 月 16 日
What does a "mesh" mean to you in this context? It would help if you could post a link to an example of what you would like the output to look like.
Walter Roberson
Walter Roberson 2018 年 4 月 16 日
Are you looking for a contour plot?

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

回答 (1 件)

KSSV
KSSV 2018 年 4 月 16 日
I =imread('pic.bmp') ;
[y,x] = find(I==0) ;
[m,n] = size(I) ;
[X,Y] = meshgrid(1:n,1:m) ;
idx = knnsearch([X(:) Y(:)],[x y]) ;
Z = ones(m,n) ;
Z(idx) = 0 ; 
pcolor(X,Y,Z) ;
shading interp 

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by