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  

|
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