how to change the images into 3d
2 ビュー (過去 30 日間)
古いコメントを表示
i have these set of images
etc...
i want to view this images into 3d or 2d like
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148018/image.jpeg)
0 件のコメント
回答 (2 件)
Youssef Khmou
2013 年 5 月 27 日
try surf, here is example :
I=im2double(imread('circuit.tif'));
surf(I);
shading interp
8 件のコメント
Youssef Khmou
2013 年 5 月 27 日
編集済み: Youssef Khmou
2013 年 5 月 27 日
ok here how it works :
2D MATRIX CAN BE VIEWED AS 2D FUNCTION IN 3D FRAME LIKE THE FIRST EXAMPLE ABOVE, M-N-3 is considered 3D MATRIX AS RGB OR HSV IMAGE BUT CAN NOT BE VIEWED IN 3D FRAME ONLY YOU CAN VIEW THE CHANNELS R,G,B :
imwrite(D,'ss.jpg');
I=im2double(imread('ss.jpg'));
figure, surf(I(:,:,1)), shading interp
hold on,
surf(I(:,:,2));
surf(I(:,:,3)), hold off
Image Analyst
2013 年 5 月 27 日
I think you need to first get a Z matrix, then do a surface rendering with delaunay or friends:
TRI = delaunay(X,Y,Z)
See the help for visualizations and sample code.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!