필터 지우기
필터 지우기

how to change the images into 3d

조회 수: 2 (최근 30일)
ajith
ajith 2013년 5월 27일
i have these set of images
etc...
i want to view this images into 3d or 2d like

답변 (2개)

Youssef  Khmou
Youssef Khmou 2013년 5월 27일
try surf, here is example :
I=im2double(imread('circuit.tif'));
surf(I);
shading interp
  댓글 수: 8
ajith
ajith 2013년 5월 27일
편집: ajith 2013년 5월 27일
imwrite(D,'ss.jpg');
I=im2double(imread('ss.jpg'));
surf(I);
shading interp
it shows
Warning: Matrix dimensions must agree, not rendering mesh
Warning: Matrix dimensions must agree, not rendering mesh
Warning: Matrix dimensions must agree, not rendering mesh
Warning: Matrix dimensions must agree, not rendering mesh
Youssef  Khmou
Youssef Khmou 2013년 5월 27일
편집: Youssef Khmou 2013년 5월 27일
ok here how it works :
2D MATRIX CAN BE VIEWED AS 2D FUNCTION IN 3D FRAME LIKE THE FIRST EXAMPLE ABOVE, M-N-3 is considered 3D MATRIX AS RGB OR HSV IMAGE BUT CAN NOT BE VIEWED IN 3D FRAME ONLY YOU CAN VIEW THE CHANNELS R,G,B :
imwrite(D,'ss.jpg');
I=im2double(imread('ss.jpg'));
figure, surf(I(:,:,1)), shading interp
hold on,
surf(I(:,:,2));
surf(I(:,:,3)), hold off

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


Image Analyst
Image Analyst 2013년 5월 27일
I think you need to first get a Z matrix, then do a surface rendering with delaunay or friends:
TRI = delaunay(X,Y,Z)
See the help for visualizations and sample code.

카테고리

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