plot 3d object from an 2d image

조회 수: 7 (최근 30일)
Soon Fei Fong
Soon Fei Fong 2015년 9월 20일
댓글: Soon Fei Fong 2015년 9월 23일
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);"

채택된 답변

Walter Roberson
Walter Roberson 2015년 9월 20일
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
Walter Roberson
Walter Roberson 2015년 9월 22일
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 2015년 9월 23일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by