필터 지우기
필터 지우기

2D images into 3D plot

조회 수: 5 (최근 30일)
agung pratama
agung pratama 2020년 4월 21일
편집: agung pratama 2020년 7월 22일
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.

답변 (2개)

Mehmed Saad
Mehmed Saad 2020년 4월 21일
x=imread('cameraman.tif');
figure,imshow(x)
figure,mesh(x)view([180 90])

darova
darova 2020년 4월 21일
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
darova
darova 2020년 4월 21일
Is the picture a color one?
agung pratama
agung pratama 2020년 4월 28일
편집: agung pratama 2020년 7월 22일
Yes,the color one

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

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by