Divide nii files

Version 1.0.0 (1.61 KB) by Jinbo Zhang
Divide nii files according to numerical sorting results.
13 Downloads
Updated 5 Jun 2020

View License

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
Created with R2018b
Compatible with R2014b to R2020a
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0