Plot an image as a 3D surface

조회 수: 12 (최근 30일)
Tim Brown
Tim Brown 2013년 5월 11일
Is there a simple way to take an image, give each pixel a height value and have matlab plot the whole thing as a surface but retain the image values instead of the matlab shading on the surface?
Background: I have an RGB image and another matrix of same size that is height values. I'd like to plot the image as a 3D surface using the height values for each pixel in the image so that each point in the surface has the color of the matching point in the RGB matrix.
In this case the data comes from a kinect but this question has more general applications.
Data: size(imgColor)=480,640,3 size(IMgDepth)=480,640

채택된 답변

Image Analyst
Image Analyst 2013년 5월 11일
  댓글 수: 2
Tim Brown
Tim Brown 2013년 5월 13일
The solution in the third link worked great.
Thanks!
Tim
Image Analyst
Image Analyst 2013년 5월 13일
Glad I could help. Please mark this answer as "Accepted" then.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by