How to Create trisurf image from RGB image ?

2 ビュー (過去 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 Center および File ExchangeDICOM Format についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by