How to create 3D plot from 2D image

6 visualizaciones (últimos 30 días)
agung pratama
agung pratama el 22 de Jul. de 2020
Respondida: Rahul el 26 de Nov. de 2024 a las 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

Respuestas (1)

Rahul
Rahul el 26 de Nov. de 2024 a las 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:

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by