AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
August 10, 2020 09:58PM
Hi-

So, it is the *underlay* dataset that sets the grid for displaying. You have a high res and a low res image, but you want the low res one (the EPI) as underlay, then you can make a resampled version that is at a finer grid size: it will look quite similar, but perhaps slightly smoothed (because regridding does that).

So, how about trying this (where you will insert input or output filenames for each DSET* file, but the "IDENTITY" term is actually a keyword to leave as is; each keyword after "-final .." is also meant to be left written as is), where there are some different interpolants you can try, and see what looks best:
# A) use "nearest neighbor" interpolant
3dAllineate                        \
        -input   DSET_LOWRES              \
        -master  DSET_HIGHRES           \
        -prefix DSET_LOWRES_UP_A      \
        -1Dparam_apply IDENTITY        \
        -final        NN

# B) use "cubic" interpolant
3dAllineate                        \
        -input   DSET_LOWRES              \
        -master  DSET_HIGHRES           \
        -prefix DSET_LOWRES_UP_B      \
        -1Dparam_apply IDENTITY        \
        -final        cubic

# C) use "wsinc" interpolant
3dAllineate                        \
        -input   DSET_LOWRES              \
        -master  DSET_HIGHRES           \
        -prefix DSET_LOWRES_UP_C      \
        -1Dparam_apply IDENTITY        \
        -final        wsinc5

# D) use "linear" interpolant
3dAllineate                        \
        -input   DSET_LOWRES              \
        -master  DSET_HIGHRES           \
        -prefix DSET_LOWRES_UP_C      \
        -1Dparam_apply IDENTITY        \
        -final        linear
You can underlay each of DSET_LOWRES_UP_* in the viewer and see what looks most appropriate (each should be fairly quick to calculate.

--pt

ps: if you want a more compact/scripty way to do the above, then this will make 4 dsets, each with the interpolant name in the file name:
#!/bin/tcsh

foreach interp ( NN cubic wsinc5 linear )
  3dAllineate                        \
        -input   DSET_LOWRES              \
        -master  DSET_HIGHRES           \
        -prefix DSET_LOWRES_UP_${interp}      \
        -1Dparam_apply IDENTITY        \
        -final    ${interp}
end 
Subject Author Posted

Overlaying 3dttest results over anatomical and template for mouse brain Attachments

kbandrew August 07, 2020 04:50PM

Re: Overlaying 3dttest results over anatomical and template for mouse brain

ptaylor August 07, 2020 06:08PM

Re: Overlaying 3dttest results over anatomical and template for mouse brain Attachments

kbandrew August 08, 2020 05:53PM

Re: Overlaying 3dttest results over anatomical and template for mouse brain

ptaylor August 10, 2020 09:58PM

Re: Overlaying 3dttest results over anatomical and template for mouse brain

Daniel Glen August 11, 2020 03:13PM

Re: Overlaying 3dttest results over anatomical and template for mouse brain

kbandrew August 16, 2020 07:01AM

Re: Overlaying 3dttest results over anatomical and template for mouse brain

ptaylor August 17, 2020 08:02AM