How to create 3D plot from 2D image

4 ビュー (過去 30 日間)
agung pratama
agung pratama 2020 年 7 月 22 日
回答済み: Rahul 2024 年 11 月 26 日
Hello, if I want to create a 3D plot from the 2D image what should I do?
Am I just need a single 2D image or more?
Is there anyone have a code to generate 3D plot from 2D image?
I have a project to measure the height of the bending plate from the 2D image,
Please help me, I'm really a newbie in Matlab

回答 (1 件)

Rahul
Rahul 2024 年 11 月 26 日
In order to create a 3D plot from a single 2D image, one approach can be to consider the depth of the image to be obtained by the intensity of the image. Functions like 'surf', 'mesh', 'plot3' can be used to create 3d plots.
Another approach can be to concatenate different layers of the 2D image using 'cat' function to eventually obtain a 3D image and then plot it. This is also mentioned in the following MATLAB Answer:
The below File exchange submission can also be considered to display the 3D Image:
Please refer the following MathWorks documentations to know more:

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by