Using @chauffeur_afni to create montages of DEC maps

AFNI version info: AFNI_24.3.06 'Elagabalus'

Hi AFNI experts,

Is there an AFNI program like @chauffeur_afni to make montages of DEC maps? I know fat_proc_decmap creates QC images but is there a program for when you already have DEC maps created from another program?

Thanks,
joanah

Hi, Joanah-

Just to note that the @chauffeur_afni command to make your own DEC map montage/snapshot could look something like this (the -box_focus_slices .. could be left out, it just helps with not wasting slices on empty space, if those exist in the data):

@chauffeur_afni                                  \
    -ulay              DEC_dec.nii.gz            \
    -box_focus_slices  DT_FA+orig.HEAD           \
    -prefix            image_DEC                 \
    -montx             7                         \
    -monty             1                         \
    -set_xhairs        OFF                       \
    -label_mode        1                         \
    -label_size        4                         \
    -globalrange       ""

Running that on FATCAT Demo data made these montage images:



If you want to glue together (=concatenate) existing images, then AFNI's 2dcat is a useful program. There are some guided examples here.

To concatenate the 3 images about in a 1x3 montage (of montages, in this case), you could run:

2dcat                                  \
        -gap 5                             \
        -gap_col 66 184 254                \
        -nx 1                              \
        -ny 3                              \
        -prefix image_ALL.jpg \
       image_DEC.*.png

... to obtain:

2dcat has a fair amount of functionality; you don't need the -gap* .. opts, but they can be nice to add in separating bands of color.

Is that what you are looking for?

--pt

1 Like

Yes this is it - thank you! Initially when I tried to run on my DEC maps I had been getting an error that the program does not take the datatype that DEC maps are.