cpp-lln-lab / CPP_ROI

Set of Octave and Matlab functions, demos and scripts to help manage ROIs and to play nice with BIDS datasets. Mostly volume-based and SPM centric.
https://cpp-roi.readthedocs.io/en/latest/index.html
GNU General Public License v3.0
5 stars 6 forks source link

Simplify saving ROI as .nii in createRoi #43

Closed JeanneCaronGuyon closed 2 years ago

JeanneCaronGuyon commented 2 years ago

Is there an existing issue for this?

New feature

createROI : From line 301, to save ROI
use the more simple function "save_as_image" from mars bar

saveroi(roiObject, ...
          fullfile(outputDir,  [roiName '.mat'])); % in .mat format
save_as_image(roiObject, ...
          fullfile(outputDir, [roiName '.nii'])); % in .nii format

Unclear documentation

No response

Remi-Gau commented 2 years ago

Suggestion added in #44

Thanks @JeanneCaronGuyon