How to create 3D plot from 2D image

6 views (last 30 days)
agung pratama
agung pratama on 22 Jul 2020
Answered: Rahul on 26 Nov 2024 at 4:58
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

Answers (1)

Rahul
Rahul on 26 Nov 2024 at 4:58
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:

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!