How to Create trisurf image from RGB image ?

3 次查看(过去 30 天)
How to Create trisurf image from RGB image ?

回答(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