필터 지우기
필터 지우기

How to display a 3D image

조회 수: 209 (최근 30일)
SoyLeyenda
SoyLeyenda 2011년 11월 24일
이동: KSSV 2022년 8월 26일
I have many binary images. ¿Is it possible to display them in a 3D image?
Example:
A=zeros(50,50,50);
This is a matrix of 50 white planes. The result of display it should be a white cube. ¿How can i make it?

채택된 답변

David Young
David Young 2011년 11월 24일
A lot depends on the characteristics of your binary images, and what you want the result to look like. Here's something simple that you may be able to build on:
A = rand(50, 50, 50) < 0.01; % synthetic data
[x y z] = ind2sub(size(A), find(A));
plot3(x, y, z, 'k.');
  댓글 수: 1
SoyLeyenda
SoyLeyenda 2011년 11월 24일
이동: KSSV 2022년 8월 26일
Thank you David. I'm gonna try it.

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

추가 답변 (2개)

Image Analyst
Image Analyst 2011년 11월 24일
MATLAB doesn't really have any 3D display capability. Not like a true volume visualization program like Avizo or similar. You can get "2.5D" doing things like surf() or you can view "projections" of 3D data onto a 2D plane and view those. The projections can show internal things if you want, like Oliver Woodford does in his vol3D http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A29192
Chances are that your visualization won't be very useful - it would look just like a solid square, or hexagon, or something so I'm not sure what you're wanting to do with that.

RUAN YY
RUAN YY 2021년 5월 18일

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by