devel > confusion on NIFTI_INTENT codes for overlay
May 21, 2008  06:05 PM | Nick Schmansky
confusion on NIFTI_INTENT codes for overlay
Is it invalid to have, in a single GIFTI file, DataArrays containing multiple intent codes of _SHAPE, _TIME_SERIES and _NONE? The operative word being AND.

Or, in other words, are _SHAPE, _TIME_SERIES and _NONE mutually exclusive?

Case in point: in freesurfer's tksurfer app (the surface renderer), there is an option to load an overlay file. Lets say the overlay is a time series of functional activation. Now, the example Caret functional file, Human.colin.R.FUNCTIONAL.71723.func.gii, has two data arrays of data with intent code NIFTI_INTENT_NONE. So what I have done in our gifti file code is just search the gifti file for that intent code. But that same data could have been given the NIFTI_INTENT_TIME_SERIES code. So I need to search for that too. And additionally, NIFTI_INTENT_SHAPE is also valid overlay data for tksurfer. So I need to search for that too. So if a file contains multiple combinations of these, then how will my reader code know which is the overlay to load?

It seems a gifti file should be considered valid only if has data arrays of only one of these intent codes, otherwise you can't tell which one to load as an overlay, and you probably don't want an OR statement in the code to load all DataArrays with any of these three intent codes.

Nick

Threaded View

TitleAuthorDate
confusion on NIFTI_INTENT codes for overlay
Nick Schmansky May 21, 2008
Richard Reynolds May 21, 2008
Nick Schmansky May 22, 2008