Get binary volumes from a volume of labels / integers

版本 1.0.0.0 (225.9 KB) 作者: Christopher Coello
Creates a set of binary volumes from a volume of labels (integers value)
601.0 次下载
更新时间 2012/3/21

查看许可证

When using label volumes (volumes with regions defined by integers), it is sometimes useful to obtain the binary volumes of each region for further processing or to calculate statistics. This program takes as an input a volume of labels/integers (e.g. FreeSurfer ouput called aseg.nii.gz), and creates a 4D volume containing a set of binary volumes. The possiblity to gather integers together using a text file allows a full flexibility in the obtained binary volumes in the ouput.
This program calls textscan when using the textfile option, so this file might not work porperly with early version of Matlab (<2005 I think).

I added a volume called aseg.zip is included as an exemple.

[regionBinaryMaps,numVoxRegions] = labelsToBinary(inLabelVol)
= labelsToBinary(inLabelVol,inAdr_Labels2Region)

引用格式

Christopher Coello (2024). Get binary volumes from a volume of labels / integers (https://www.mathworks.com/matlabcentral/fileexchange/35788-get-binary-volumes-from-a-volume-of-labels-integers), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2011b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Biotech and Pharmaceutical 的更多信息
致谢

启发作品: A GUI to load and view .NII files.

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0