Effacer les filtres
Effacer les filtres

how to get a 3D view of grey image?

2 vues (au cours des 30 derniers jours)
adi
adi le 15 Juin 2020
Commenté : Ameer Hamza le 15 Juin 2020
Hi every one,
so i have a gray image and i want to have a view of the different regions in the image (steep/flat regions)
how can i display a 3D view so the x,y will represent the pixel location and z will represent the value of the pixel?
thank you!

Réponse acceptée

Ameer Hamza
Ameer Hamza le 15 Juin 2020
You can use surf()
img = im2double(imread('pears.png'));
img_gray = rgb2gray(img);
surf(img_gray)
shading interp
img_gray:
surf():
  2 commentaires
adi
adi le 15 Juin 2020
Thank you!
Ameer Hamza
Ameer Hamza le 15 Juin 2020
I am glad to be of help!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by