how to find mesh of an image?
조회 수: 3 (최근 30일)
이전 댓글 표시
i have an image .suggest some code how to start with it.new to generating mesh
댓글 수: 7
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.
답변 (1개)
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
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!