How to create 3D plot from 2D image
6 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
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:
0 Comments
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!