MATLAB Answers

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 :)

조회 수: 11(최근 30일)
Samuel Sacks
Samuel Sacks 23 Oct 2016
답변: Walter Roberson 23 Oct 2016
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 :)

  댓글 수: 1

Image Analyst
Image Analyst 23 Oct 2016
It's already like that, so you're done. Just consider 1 solid and 0 empty. Nothing else to do.

로그인 to comment.

답변(2개)

Knut
Knut 23 Oct 2016
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

  댓글 수: 0

로그인 to comment.


이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그


Translated by