History of AFNI updates  

|
September 10, 2021 12:15PM
This particular use of 3dLocalstat may not be what you expect. The stat parameter here essentially computes a voxel value based on the bin step. Consider this example:

3dLocalstat -prefix testperc.nii.gz -nbhd 'SPHERE(-5)' -stat 'perc:1:100:25' func_slim+tlrc.'[1]'

The stat format for the percentile uses "perc:start:stop:step" as its parameters all expressed in percent (not decimal fractions). This command computes the values at the 1%, 26%, 51% and 76%ile in a 5mm radius local neighborhood around each voxel. The output has 4 subbrick volumes. Switch among these with the Overlay panel control.

The median would be computed with either of these commands, and either would have only a single output subbrick volume (the start and stop are equal):

3dLocalstat -prefix testperc2.nii.gz -nbhd 'SPHERE(-5)' -stat 'perc:1:100:25' func_slim+tlrc.'[1]'
3dLocalstat -prefix test_median.nii.gz -nbhd 'SPHERE(-5)' -stat 'median' func_slim+tlrc.'[1]'
Subject Author Posted

3dLocalstat percentile output

jbarredo September 10, 2021 09:57AM

Re: 3dLocalstat percentile output

Daniel Glen September 10, 2021 12:15PM

Re: 3dLocalstat percentile output

jbarredo September 15, 2021 08:30AM