2D images into 3D plot

Hallo, I am a new user for Matlab and i really need your help. please. I am trying to generate a 2D images into 3D plot, can anyone help me please.
Something like this.

Respuestas (2)

Mehmed Saad
Mehmed Saad el 21 de Abr. de 2020

0 votos

x=imread('cameraman.tif');
figure,imshow(x)
figure,mesh(x)view([180 90])
darova
darova el 21 de Abr. de 2020

0 votos

Create 3D object (surface maybe) and use rotate
h = surf(peaks);
orig1 = [ 0 0 0 ];
ang1 = 15;
dir1 = [ 1 0 0];
rotate(h,dir1,ang1,orig1);
view(2)
Use handlers to extract transformed data
x = get(h,'xdata');
y = get(h,'ydata');
z = get(h,'zdata');

3 comentarios

agung pratama
agung pratama el 21 de Abr. de 2020
How to add a picture instead peaks?
darova
darova el 21 de Abr. de 2020
Is the picture a color one?
agung pratama
agung pratama el 28 de Abr. de 2020
Editada: agung pratama el 22 de Jul. de 2020
Yes,the color one

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 21 de Abr. de 2020

Editada:

el 22 de Jul. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by