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  

|
October 08, 2009 11:58AM
If these masks have been generated based on a moving neighborhood, would it be important to have access to the intended "center" of the neighborhood?

It seems likely that if the shapes of the neighborhoods have been processed a lot then the "center" of the neighborhood might not be obvious anymore when working backwards from only the binary mask. This could possibly be a problem when trying to create a map of the output.

So here's a different idea:

If each location in space maps to at most one mask, then another idea
would be to create a BRIK as a 3D image plust trailing binary data. Linearly the file would look like:

[ spatial map of offsets into mask data ][ mask data ]

The first part of the BRIK is a standard 3D AFNI image that stores offsets into the binary data that follows. Voxels that don't have an associated mask would be zero (which is obviously an invalid offset). The trailing binary mask data would be sparse lists of indices.

If the masks are stored in the same linear order as the brik data, then the end of each mask can be found implicitly from the offset of the next non-zero voxel in the map portion of the file. For the last mask in the file either you accept EOF as the end of the mask or you create a phantom voxel at the beginning of the mask data that stores an offset for the end of the file.

In theory you could store any voxel wise data not only masks.

--judd
Subject Author Posted

Support for multiple sparse volume masks?

Nick October 06, 2009 08:37AM

Re: Support for multiple sparse volume masks?

bob cox October 06, 2009 10:33AM

Re: Support for multiple sparse volume masks?

Nick Oosterhof October 06, 2009 11:49AM

Re: Support for multiple sparse volume masks?

Judd October 06, 2009 04:00PM

Re: Support for multiple sparse volume masks?

Nick Oosterhof October 07, 2009 07:33AM

Re: Support for multiple sparse volume masks?

Judd October 07, 2009 10:26AM

Re: Support for multiple sparse volume masks?

Daniel Glen October 07, 2009 12:04PM

Re: Support for multiple sparse volume masks?

Nick Oosterhof October 07, 2009 01:25PM

Re: Support for multiple sparse volume masks?

bob cox October 07, 2009 03:12PM

Re: Support for multiple sparse volume masks?

Nick Oosterhof October 07, 2009 03:49PM

Re: Support for multiple sparse volume masks?

Nick October 07, 2009 10:03PM

Re: Support for multiple sparse volume masks?

Judd October 08, 2009 11:58AM

Re: Support for multiple sparse volume masks?

Judd October 08, 2009 12:06PM

Re: Support for multiple sparse volume masks?

Nick Oosterhof October 08, 2009 01:07PM

Re: Support for multiple sparse volume masks?

Nick Oosterhof October 08, 2009 01:06PM

Re: Support for multiple sparse volume masks?

Judd October 08, 2009 01:44PM

Re: Support for multiple sparse volume masks?

Nick Oosterhof October 08, 2009 03:42PM

Re: Support for multiple sparse volume masks?

Judd October 08, 2009 04:39PM

Re: Support for multiple sparse volume masks?

Nick Oosterhof October 09, 2009 12:34PM

Re: Support for multiple sparse volume masks?

bob cox October 06, 2009 04:02PM

Re: Support for multiple sparse volume masks?

Nick Oosterhof October 07, 2009 07:47AM

Re: Support for multiple sparse volume masks?

Judd October 06, 2009 01:25PM

Re: Support for multiple sparse volume masks?

Nick Oosterhof October 06, 2009 01:49PM

Re: Support for multiple sparse volume masks?

Rasmus Birn October 06, 2009 04:13PM

Re: Support for multiple sparse volume masks?

Nick Oosterhof October 07, 2009 07:37AM