plot 3d object from an 2d image
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
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
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
Soon Fei Fong
2015년 9월 21일
The attached code is how i plot the 3d car model. But each line need to draw manually and ugly, so now i desired to use an 2d image, then extend it to 3d.
Walter Roberson
2015년 9월 21일
The code did not get attached. Be sure to click on Attach File after selecting the file.
Soon Fei Fong
2015년 9월 22일
attached code
Walter Roberson
2015년 9월 22일
When you say you want to start with a 2d image do you mean like a .tif file? If so please attach a sample.
Soon Fei Fong
2015년 9월 22일
no, image like png/jpg/bmp. This is the attached image.
Walter Roberson
2015년 9월 22일
That is just a square? I thought you meant something like a picture of an automobile taken from the top.
Soon Fei Fong
2015년 9월 22일
to simply, i just test with square, this is the car image.
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
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개)
카테고리
도움말 센터 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
