Skip to content

segmentation fails when 'Atlas label maps -> Native space' is set to 'yes' #52

@zeffiro

Description

@zeffiro

The error reported is -> Failed 'CAT12: Segmentation'
Index exceeds the number of array elements. Index must not exceed 1.


CAT12.9 r2916: 1/1: H:\CIRCE-work\CNTL\t01\anat\t01.nii

SANLM denoising (medium) 6s
Affine preprocessing (APP)
Initialize 3s
Estimate background 1s
Initial correction 2s
Refine background 1s
Final correction 2s
Final scaling 2s
13s
Correct center-of-mass 3s
Affine registration 3s
SPM preprocessing 1 (estimate 1 - TPM registration): 22s
SPM preprocessing 1 (estimate 2): 39s
SPM preprocessing 2 (write)
Write Segmentation 8s
Update Segmentation 5s
Update Skull-Stripping 10s
Update probability maps 2s
25s
Global intensity correction 4s
SANLM denoising after intensity normalization (medium) 2s
Fast Optimized Shooting registration 2s
46s
Local adaptive segmentation (LASstr=0.50)
Prepare maps 1s
Prepare partitions 1s
Prepare segments (LASmod = 1.00) 3s
Estimate local tissue thresholds (WM) 7s
Estimate local tissue thresholds (GM) 9s
Intensity transformation 0s
SANLM denoising after LAS (medium) 8s
30s
ROI segmentation (partitioning)
Atlas -> subject space 4s
Major structures 6s
Ventricle detection 5s
Blood vessel detection 3s
WMH detection (WMHCstr=0.50 > WMHCstr'=0.01) 33s
Manual stroke lesion detection 0s
Closing of deep structures 0s
Side alignment 1s
Final corrections 1s
53s
Apply enhanced blood vessel correction 0s
Amap using initial SPM segmentations (MRF filter strength 0.06) 33s
AMAP peaks: [CSF,GM,WM] = [0.36±0.06,0.68±0.08,0.97±0.05]
Final cleanup (gcutstr=0.25)
Level 1 cleanup (ROI estimation) 1s
Level 1 cleanup (brain masking) 1s
Level 2 cleanup (CSF correction) 0s
Level 3 cleanup (CSF/WM PVE) 0s
2s
2s
Write result maps

CAT Preprocessing error for t01:

Unable to perform assignment because the size of the left side is 1-by-4 and the size of the right side is 2-by-4.

252 - cat_main_write
806 - cat_main1639
1448 - cat_run_job1639
40 - cat_run_newcatch
1355 - run_job
818 - cat_run
29 - cfg_run_cm
1717 - local_runcj
972 - cfg_util
710 - MenuFileRun_Callback
95 - gui_mainfcn
53 - cfg_ui

05-Oct-2025 21:30:46 - Failed 'CAT12: Segmentation'
Index exceeds the number of array elements. Index must not exceed 1.
In file "C:\Users\tz\Documents\Applications\spm25\spm_25.01.02\spm\toolbox\cat12\cat_vol_qa.m", function "cat_vol_qa" at line 678.
In file "C:\Users\tz\Documents\Applications\spm25\spm_25.01.02\spm\toolbox\cat12\cat_run_newcatch.m", function "cat_run_newcatch" at line 206.
In file "C:\Users\tz\Documents\Applications\spm25\spm_25.01.02\spm\toolbox\cat12\cat_run.m", function "run_job" at line 1355.
In file "C:\Users\tz\Documents\Applications\spm25\spm_25.01.02\spm\toolbox\cat12\cat_run.m", function "cat_run" at line 818.

The following modules did not run:
Failed: CAT12: Segmentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions