How to Create trisurf image from RGB image ?

2 Ansichten (letzte 30 Tage)
Selva Karna
Selva Karna am 9 Nov. 2018
Kommentiert: KSSV am 12 Nov. 2018
How to Create trisurf image from RGB image ?

Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu DICOM Format finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by