2d image to 3d surface
1 回表示 (過去 30 日間)
古いコメントを表示
a = imread('Sample.jpeg');
surfc(rgb2gray (a), 'EdgeColor','none')
grid on
colormap (jet(50))
shading interp
Im using this code to make a 3d surface, but i got the surface upsite down. Can any one help me please?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/286466/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/286467/image.jpeg)
0 件のコメント
回答 (1 件)
Star Strider
2020 年 4 月 22 日
Try this:
a = imread('Sample.jpeg');
surfc(rgb2gray (a), 'EdgeColor','none')
grid on
colormap (jet(50))
shading interp
set(gca, 'ZDir','reverse')
.
5 件のコメント
Star Strider
2020 年 4 月 28 日
That is likely not possible from a planar image. You would need to do some sort of scan (laser, CT, MRI) or something similar (stereoscopy) to extract the shape of the object. A single image itself will not provide that information.
Priscila de Araújo
2021 年 8 月 29 日
Hi, Star Strider. I have four images of an object (superior view, lateral view, anterior view, posterior view). Can you help me, please?
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!