How can I convert a 2d image into a 3d one?

My idea would be to be able to display a 2d image (8bit)in one in 3d with the depth that is a function of the different brightness level (0 = black, 255 = white). How could I do? Thank you

 Réponse acceptée

jonas
jonas le 2 Oct 2018
Modifié(e) : jonas le 2 Oct 2018
You could use surf to display the grayscale matrix. An example:
G=imread('cameraman.tif')
surf(G,'edgecolor','none')
colormap(gray)

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by