Hi Paul,
Here is the output with the verbose flag:
c3d -verbose 2021-05-04_AZBA_segmentation.nii.gz 2021-05-04_AZBA_segmentation.nii.gz -oli 2021-05-04_AZBA_Label_descriptions.txt 1 -slice y 400:1:402 -foreach -type uchar -endfor -oomc coronal/2021-05-04_AZBA_segmentation_%02d.png
Reading #1 from 2021-05-04_AZBA_segmentation.nii.gz
Reading #2 from 2021-05-04_AZBA_segmentation.nii.gz
Overlaying labels in #1 over image #0
Extracting slice 400 along Y axis in image #1
Extracting bounding box [0, 400, 0] [470, 1, 670]
Extracting slice 401 along Y axis in image #2
Extracting bounding box [0, 401, 0] [470, 1, 670]
Extracting slice 402 along Y axis in image #3
Extracting bounding box [0, 402, 0] [470, 1, 670]
Repeating commands for all 5 images
Segmentation fault (core dumped)
I tried adding 3 immediately after the -oomc argument (i.e. and I get (I also tried 2 and 6 with the same result):
c3d -verbose 2021-05-04_AZBA_segmentation.nii.gz 2021-05-04_AZBA_segmentation.nii.gz -oli 2021-05-04_AZBA_Label_descriptions.txt 1 -slice y 400:1:402 -foreach -type uchar -endfor -oomc 3 coronal/2021-05-04_AZBA_segmentation_%02d.png
Reading #1 from 2021-05-04_AZBA_segmentation.nii.gz
Reading #2 from 2021-05-04_AZBA_segmentation.nii.gz
Overlaying labels in #1 over image #0
Extracting slice 400 along Y axis in image #1
Extracting bounding box [0, 400, 0] [470, 1, 670]
Extracting slice 401 along Y axis in image #2
Extracting bounding box [0, 401, 0] [470, 1, 670]
Extracting slice 402 along Y axis in image #3
Extracting bounding box [0, 402, 0] [470, 1, 670]
Repeating commands for all 5 images
Exception caught of type 16ConvertException
Exception detail: Multicomponent output error: mismatch in image dimensions
So it looks like it doesn't get to the 'segmentation fault' error.
Thanks for having a look!
Justin