Hi, I've been using VBM12:Segmentation, which worked fine before, but now it gives an error. I was wondering whether something has changed in the code since the last update?
Specifically, in the step segmentation, modulated normalized, you can choose between 1) affine and non-linear (produces mwp* images) and 2) non-linear only (produces mw0* images). If you choose non-liner only, it works fine, but if you choose affine&non-linear it gives the error shown below. It seems that the function vbm_io_writenii skips defining 'wr' when the option is set to 1?
Hope you can help out,
Best Marieke
------------------------------------------------------------------------
Running job #1
------------------------------------------------------------------------
Running 'VBM12: Segmentation'
------------------------------------------------------------------------
VBM12 r684: ./VBM/T1_sub001.nii,1
------------------------------------------------------------------------
NLM-Filter: 290s
Affine Registration: 126s
SPM-Preprocessing 1: 226s
SPM-Preprocessing 2: 186s
Global Intensity Correction: 61s
NLM-Filter after Global Intensity Correction (ORNLMstr=0.03): 24s
Local Adaptive Segmentation (LASstr=0.50): 174s
ROI Segmentation (Partitioning): 107s
Blood Vessel Correction (BVCstr=0.50): 5s
Skull-stripping using graph-cut (gcutstr=0.50): 34s
Amap without Kmeans with MRF-Filterstrength 0.15: 29s
Final cleanup (gcutstr=0.50): 25s
Dartel normalization: 480s
Write result maps:
------------------------------------------------------------------------
VBM Preprocessing error: MATLAB:UndefinedFunction: ./VBM/T1_sub001.nii,1
------------------------------------------------------------------------
Undefined function or variable "wr".
------------------------------------------------------------------------
259 - vbm_io_writenii
1407 - cg_vbm_write
326 - cg_vbm_run_job
10 - cg_vbm_run_newcatch
162 - run_job
121 - cg_vbm_run
29 - cfg_run_cm
1673 - local_runcj
953 - cfg_util
707 - MenuFileRun_Callback
96 - gui_mainfcn
53 - cfg_ui
------------------------------------------------------------------------
Done 'VBM12: Segmentation'
Done
|