How to Create trisurf image from RGB image ?

조회 수: 3 (최근 30일)
Selva Karna
Selva Karna 2018년 11월 9일
댓글: KSSV 2018년 11월 12일
How to Create trisurf image from RGB image ?
  댓글 수: 1
KSSV
KSSV 2018년 11월 9일
Example.....any pictorial example?

댓글을 달려면 로그인하십시오.

답변 (1개)

KSSV
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
Selva Karna
Selva Karna 2018년 11월 12일
편집: Selva Karna 2018년 11월 12일
Thanks for reply,actually RGB image to TRISURF using RGB x,y,z coordinates.
KSSV
KSSV 2018년 11월 12일
Yes..you can follow the above for that.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by