devel > Dimensionality and scalar data
Apr 4, 2008  03:04 PM | John Harwell
Dimensionality and scalar data
Olivier,

Defining the dimensionality of each data intent is a good topic for
our next phone conference.

I propose the following:

NIFTI_INTENT_POINTSET, NIFTI_INTENT_VECTOR
Dimensionality=2
Dim0=#nodes
Dim1=3 (x, y, z components)

NIFTI_INTENT_TRIANGLE
Dimensionality=2
Dim0=#triangles
Dim1=3 (node numbers that form a triangle)

NIFTI_INTENT_RGB_VECTOR
Dimensionality=2
Dim0=#nodes
Dim1=3 (red, green, blue components)
Should the range of data values be (0, 255) or (0.0, 1.0)?

NIFTI_INTENT_RGBA_VECTOR
Dimensionality=2
Dim0=#nodes
Dim1=4 (red, green, blue, alpha components)
Should the range of data values be (0, 255) or (0.0, 1.0)?


NIFTI_INTENT_* (statistic)
NIFTI_INTENT_LABEL
NIFTI_INTENT_NODE_INDEX
NIFTI_INTENT_SHAPE
NIFTI_INTENT_TIME_SERIES

These intents can be either (I have no preference but we should pick
one):

Dimensionality=2
Dim0=#nodes
Dim1=1

or

Dimensionality=1
Dim0=#nodes


John

>
>>
>> By: Olivier Coulon
>>
>> Hello everybody,
>> trying to read the gii files uploaded by Ziad, the following
>> question arised
>> : when storing a data array of, say, 20000 triangles, one has to
>> write this :
>> Dimensionality="2"
>> Dim0="20000"
>> Dim1="3"
>> i.e. 20000 elements of dimension 3. When it comes to scalar data,
>> this transposes
>> to :
>> Dimensionality="2"
>> Dim0="20000"
>> Dim1="1"
>> i.e. 20000 elements of dimension 1, as given in John's example files.
>> In Ziad's files it is declared as :
>> Dimensionality="1"
>> Dim0="20000"
>> which is one element of dimension 20000.
>> Are both ways OK ? Or did I misunderstand something ?
>> Thanks,
>>
> Olivier

Threaded View

TitleAuthorDate
Olivier Coulon Apr 4, 2008
Dimensionality and scalar data
John Harwell Apr 4, 2008
Olivier Coulon Apr 4, 2008
Richard Reynolds Apr 4, 2008
Erik Anderson Apr 4, 2008