How to Create trisurf image from RGB image ?
2 ビュー (過去 30 日間)
古いコメントを表示
How to Create trisurf image from RGB image ?
回答 (1 件)
KSSV
2018 年 11 月 9 日
I = imread('cameraman.tif') ;
[nx,ny] = size(I) ;
[X,Y] = meshgrid(1:ny,1:nx) ;
dt = delaunayTriangulation(X(:),Y(:)) ;
tri = dt.ConnectivityList ;
p = dt.Points ;
I = flipud(I) ;
p(:,3) = I(:) ;
trisurf(tri,p(:,1),p(:,2),p(:,3))
shading interp
colormap(gray)
view(2)
2 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!