필터 지우기
필터 지우기

how to get a 3D view of grey image?

조회 수: 2 (최근 30일)
adi
adi 2020년 6월 15일
댓글: Ameer Hamza 2020년 6월 15일
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!

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 6월 15일
You can use surf()
img = im2double(imread('pears.png'));
img_gray = rgb2gray(img);
surf(img_gray)
shading interp
img_gray:
surf():
  댓글 수: 2
adi
adi 2020년 6월 15일
Thank you!
Ameer Hamza
Ameer Hamza 2020년 6월 15일
I am glad to be of help!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by