3d reconstruction from single 2d image ?

1 次查看(过去 30 天)
hello mathworkers can someone help me i have a .ppm image and i want to create 3d mesh (get x, y, z values)

回答(1 个)

Walter Roberson
Walter Roberson 2018-4-24
im = imread('cameraman.tif');
[X,Y] = ndgrid(1:size(im,2), 1:size(im,1));
mesh(X,Y,im)
view([70 69])
  1 个评论
Marwa Jabberi
Marwa Jabberi 2018-4-25

thanks for answering but i ant to get z coordinate from 2d image (x,y) from 2d image to 3d mesh

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by