how to find mesh of an image?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
i have an image .suggest some code how to start with it.new to generating mesh
7 Kommentare
Walter Roberson
am 16 Apr. 2018
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.
Antworten (1)
KSSV
am 16 Apr. 2018
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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!