CAT12 segmentation of macaque T1 aborts – missing files or settings?

catlog_sub-032144_ses-001_run_1_ce-mion_T1w.txt (24.4 KB)
Hello everyone,

I am trying to segment macaque T1 images using the current CAT12 (r2577) release in SPM12, with the developer flag for old‐world monkeys:

cat12('oldworldmonkey')

I have downloaded the primetemp templates from:

GitHub - robdahn/primetemp: Segmentation and registration template files to process structural magnetic resonance images from primates in CAT12/SPM12.

and placed them in my SPM12/toolbox/cat12/templates_animals/ folder alongside the existing monkey_oldworld_* files.

However, when I run segmentation on a sample T1, it aborts with an error during the “SPM preprocessing 1 (TPM registration)” step. The attached log shows:

Warning 01: cat_run_job1639:noSPMTPM-noBGmasking
Different TPM detected – deactivated background masking!
SPM preprocessing 1 (estimate 1 - TPM registration):
Warning: Matrix is singular or badly scaled. Results may be inaccurate. RCOND = NaN.
Error in spm_preproc8. Check image and orientation.
  Volume size (x,y,z): 192 256 256
  Origin (x,y,z):   -48.0 -70.0 -70.0
  Rotation (deg):    0.0   0.0   0.0
  Resolution:        0.5   0.5   0.5

To help troubleshoot, I’ve also attached:

catlog_sub-032144_ses-001_run_1_ce-mion_T1w.txt (24.4 KB)

My questions:

  1. Am I missing any additional template files (e.g. brainmask, dartel templates, atlas) that CAT12 needs for macaque segmentation?
  2. Should I adjust any CAT12 options (e.g. affreg, setCOM, regstr) for old‐world monkey data?
  3. Is there a recommended “complePreformatted textte” monkey template package I should use instead of primetemp?

Thank you in advance for any advice or pointers!