How to Create trisurf image from RGB image ?
조회 수: 3 (최근 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
참고 항목
카테고리
Help Center 및 File Exchange에서 DICOM Format에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!