3D image generation from 3D matrix of data

Hello,
I have a 3D matrix which represents a cartesian space with an obejct in it. In the matrix, each cell has either a value of 1 representing the location of the object, or a 0 where there is free space. Just FYI: this matrix represents where a conductor sits in space for an electromagnetic Laplace equation solver.
I would like to simply generate some good 3-D visuals of the conductor. I have used imagesc() and squeeze() for 2-D "slice" pictures and isosurface() for 3-D images. isosurface() is ok but it rounds the edges automatically which I don't like and customizing the plot is a bit tedious with this function. Are there better options?
some psuedocode:
x = y = z = [0:someNumber];
[Y,X,Z] = meshgrid(y,x,z);
conductor = zeros(size(X));
conductor(objectIndices) = 1;
3DImage(conductor);

답변 (1개)

Matt J
Matt J 2021년 4월 28일

0 개 추천

Perhaps volumeViewer, volshow, or labelvolshow.

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2021년 4월 28일

답변:

2021년 4월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by