3d reconstruction from single 2d image ?

hello mathworkers can someone help me i have a .ppm image and i want to create 3d mesh (get x, y, z values)

Antworten (1)

Walter Roberson
Walter Roberson am 24 Apr. 2018

0 Stimmen

im = imread('cameraman.tif');
[X,Y] = ndgrid(1:size(im,2), 1:size(im,1));
mesh(X,Y,im)
view([70 69])

1 Kommentar

Marwa Jabberi
Marwa Jabberi am 25 Apr. 2018

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

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 24 Apr. 2018

Kommentiert:

am 25 Apr. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by