Divide nii files
Divide nii files according to numerical sorting results. According to the extraction parameters you provide, the most positive and negative voxels can be taken out according to the ratio and stored as another nii file.
such as:
nii_fname = 'test.nii';
split_nii_val(nii_fname,'pos','top',0.025,'output1.nii');
split_nii_val(nii_fname,'pos','bottom',0.01,'output2.nii');
split_nii_val(nii_fname,'neg','top',0.01,'output3.nii');
split_nii_val(nii_fname,'neg','bottom',0.01,'output4.nii');
Cite As
Jinbo Zhang (2024). Divide nii files (https://www.mathworks.com/matlabcentral/fileexchange/76598-divide-nii-files), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: DPABI: a toolbox for Data Processing & Analysis for Brain Imaging
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |