History of AFNI updates  

|
December 09, 2019 05:56AM
That's a nice idea, I still think 3dAutobox (again, probably with -noclust) would be the fastest. To get around having to create a new dset, you could do:
#!/bin/tcsh

# get the full, formatted string
set aaa = `3dAutobox -noclust -extent -input PIL.nii`
# get just the "P=..." piece of the output (always the 7th, even if dataset is resampled), and the get just the number part (3rd character and after)
set just_coord = `echo ${aaa[7]} | awk '{print substr($0,3)}'`

echo "++ The posterior coord is:  ${just_coord}"

--pt
Subject Author Posted

How to get the most posterior coronal slice location of a volume mask?

EXP.2086 December 09, 2019 12:48AM

Re: How to get the most posterior coronal slice location of a volume mask?

ptaylor December 09, 2019 05:29AM

Re: How to get the most posterior coronal slice location of a volume mask?

EXP.2086 December 09, 2019 05:42AM

Re: How to get the most posterior coronal slice location of a volume mask?

ptaylor December 09, 2019 05:56AM

Re: How to get the most posterior coronal slice location of a volume mask?

EXP.2086 December 09, 2019 05:58AM

Re: How to get the most posterior coronal slice location of a volume mask?

rick reynolds December 10, 2019 03:29PM