How to Create trisurf image from RGB image ?

3 visualizaciones (últimos 30 días)
Selva Karna
Selva Karna el 9 de Nov. de 2018
Comentada: KSSV el 12 de Nov. de 2018
How to Create trisurf image from RGB image ?

Respuestas (1)

KSSV
KSSV el 9 de Nov. de 2018
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 comentarios
Selva Karna
Selva Karna el 12 de Nov. de 2018
Editada: Selva Karna el 12 de Nov. de 2018
Thanks for reply,actually RGB image to TRISURF using RGB x,y,z coordinates.
KSSV
KSSV el 12 de Nov. de 2018
Yes..you can follow the above for that.

Iniciar sesión para comentar.

Categorías

Más información sobre DICOM Format en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by