MATLAB: Saving a slice through volumetric data to an image [duplicate]

故事扮演 提交于 2019-12-25 11:47:10

问题


I have a 3D stack of bwlabeln'ed data (128 by 128 by 128). Is there a way to cut a slice through it (as in MATLAB slice(...)) and save the resulting image to a matrix?

Thanks in advance!


回答1:


the function that may be of use is: http://www.mathworks.com/matlabcentral/fileexchange/32032-extract-slice-from-volume

for other solutions, see: Extract arbitrarily rotated plane of data from 3D array as 2D array




回答2:


What kind of slice? Along one dimension e.g. z=5 you can use M(:,:,5). For diagonal slices you have to use some advanced method (interpolation).



来源:https://stackoverflow.com/questions/22426112/matlab-saving-a-slice-through-volumetric-data-to-an-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!