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  

|
bob cox
February 11, 2003 09:36AM
The -preserve (or -vote) process does not count zero voxels. Even if there is a 1 part per trillion overlap of a nonzero voxel with a zero voxel, the nonzero value wins. And even if the input grids are identical, floating point error means that there can be a tiny nonzero overlap of a voxel with its neighbor. These two effects together give this dilation effect you are seeing upon repeated "3dfractionize -preserve" operations.

The solution is simple - set a volume fraction threshold; for example, "-clip 0.2" means that voxel overlap must be at least 0.2 (20%) before it counts.

As to your second question, there are several ways to extract 1 sub-brick from a dataset and make it into a new dataset. Perhaps the simplest is something like

3dbucket -fbuc -prefix new_dset 'old_dset[0]'

However, this copies the values - if you want a dataset with the same geometry, but with the values all 0, the simplest way would be

3dcalc -a 'old_dset[0]' -prefix new_dset -expr '0'
3drefit -fim new_dset+orig


Also note that if you are using the AFNI drawing plugin, it has the ability to copy a dataset for you (with data or with zeroes) when you open it.

bob cox
Subject Author Posted

Questions to 3dfractionize

Wolfgang February 10, 2003 05:49PM

Re: Questions to 3dfractionize

bob cox February 11, 2003 09:36AM

Re: Questions to 3dfractionize

Wolfgang February 11, 2003 02:44PM

Re: Questions to 3dfractionize

bob cox February 11, 2003 03:05PM