plot 3d object from an 2d image
조회 수: 7 (최근 30일)
이전 댓글 표시
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);"
댓글 수: 0
채택된 답변
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
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!