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  

|
September 19, 2003 02:44PM
Hi Rutvik,

A node is "out of bounds" if its coordinates are outside of
the box defined by the '-grid_parent' AFNI dataset. Since
the intention of the program is to output the AFNI volume
data in the surface domain, it made sense to only output
values for those nodes within the bounds to the data source.

However, I had originally considered adding an '-oob_value'
option (to specify the output value for nodes considered out
of bounds), and am still willing to do that. There just hasn't
been much interest in it.

At any rate, I will do this. My plan is to add 2 new options:

-oob_value VALUE : specify the value output for oob nodes
-oob_index INDEX : specify the indices for oob nodes

The reason for the second option is to fill in the index columns
in those same rows. Values of 0 or -1 both make sense to me.
These will default to 0, in the case where one is specified, but
not the other.

---

An option for the meantime would be to write a little script to
fix the output. You could just use awk to grab the 2 columns
that you want, pipe the output through sort, and send that to
another awk script that filled in any missing lines with:
NODE_INDEX 0

So if you wrote fillin.awk for the final step (and removed the '#'
comment lines from the top of the 3dVol2Surf output), you could
do something like:

awk '{printf "%07d\t%f\n", $1, $7}' 3ds2v.out | sort

The output of this would have the nodes sorted, so you could
pipe that through your fillin.awk script to fill in the gaps.

If you are in deparate need of this soon (either the program, or
more info on an awk script), please send me email.

Thanks,

- rick

Subject Author Posted

3dVol2Surf - out of bounds points

Rutvik Desai September 18, 2003 04:46PM

Re: 3dVol2Surf - out of bounds points

rick reynolds September 19, 2003 02:44PM

Re: 3dVol2Surf - out of bounds points

Rutvik Desai September 19, 2003 03:32PM

Re: 3dVol2Surf - out of bounds points

Ziad September 19, 2003 03:54PM

Re: 3dVol2Surf - out of bounds points

rick reynolds September 19, 2003 04:12PM

Re: 3dVol2Surf - out of bounds points

Rutvik Desai September 19, 2003 06:38PM

Re: 3dVol2Surf - out of bounds points

rick reynolds September 21, 2003 05:49PM

Re: 3dVol2Surf - out of bounds points

Rutvik Desai September 22, 2003 04:07PM

Re: 3dVol2Surf - out of bounds points

rick reynolds September 22, 2003 04:45PM

Re: 3dVol2Surf - out of bounds points

Rutvik Desai September 22, 2003 06:27PM

Re: 3dVol2Surf - out of bounds points

rick reynolds September 22, 2003 06:45PM

Re: 3dVol2Surf - out of bounds points

rick reynolds September 23, 2003 10:01AM

Re: 3dVol2Surf - out of bounds points

Rutvik Desai September 23, 2003 01:53PM