plot 3d object from an 2d image

7 Ansichten (letzte 30 Tage)
Soon Fei Fong
Soon Fei Fong am 20 Sep. 2015
Kommentiert: Soon Fei Fong am 23 Sep. 2015
Hi, I desire to plot a 3d object from an 2d image, for example, an 2d image contain a square (20X20), i desired to extend the shape to 3d (20x20x10). After construct, the image should able to view by the command "view(45,60);"

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 20 Sep. 2015
image_as_3D = repmat(image_as_2D, 1, 1, 10);
You will need to show us an example of what you want the plot to look like.
  9 Kommentare
Walter Roberson
Walter Roberson am 22 Sep. 2015
If I understand correctly, you want to be able to click on a part of the image, have the program figure out what else in the image is part of the same structure, and then you want to be able to stretch that object into the third dimension using some as-yet-unstated method to indicate how large you want it? With the program having to be able to figure out continuity to know for example that the horizontal line crossing the circles indicates that the body of the car is straight across and that the circles are complete circles that are "behind" the transparent body of the car?
I think that these days people who want to do this kind of task use a dedicated CAD tool that has these kinds of facilities built in. And if they were modeling an existing object that they would use one or more stereo images to extract depth information, or they would use a 3D scanner or tool such as a Kinect
Soon Fei Fong
Soon Fei Fong am 23 Sep. 2015
hi, sorry that my question is unclear, but what is to display an array like 256x256x4 (contain pixel value). Just like imshow in 2d image.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by