How can one convert a 3d matrix of ones and zeros this into a 3d image with the ones being solid voxels and the zeros being empty voxels. thanks :)

조회 수: 7 (최근 30일)
I am relatively new to matlab. I have created a three-dimensional matrix of ones an zeros and I would like to find a way of converting this into a 3d image with the ones being solid voxels and the zeros being empty voxels. Any help would be much appreciated thanks :)

답변 (2개)

Knut
Knut 2016년 10월 23일
Sounds like you want to visualize a 3-d array in the same way that image() lets you visualize 2-d arrays.
I did, and ended up writing image3() that can be found at fileexchange: http://www.mathworks.com/matlabcentral/fileexchange/30721-image3

Walter Roberson
Walter Roberson 2016년 10월 23일
See vol3d in the File Exchange

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by