Define supported image classes and names
ClassMapDict | |
ExtMapRecoder(codes[, fields, map_maker]) | Create recoder object |
spatial_axes_first(img) | True if spatial image axes for img always preceed other axes |
Bases: nibabel.volumeutils.Recoder
Create recoder object
codes give a sequence of code, alias sequences fields are names by which the entries in these sequences can be accessed.
By default fields gives the first column the name “code”. The first column is the vector of first entries in each of the sequences found in codes. Thence you can get the equivalent first column value with ob.code[value], where value can be a first column value, or a value in any of the other columns in that sequence.
You can give other columns names too, and access them in the same way - see the examples in the class docstring.
Parameters: | codes : sequence of sequences
fields : {(‘code’,) string sequence}, optional
map_maker: callable, optional :
|
---|
Create recoder object
codes give a sequence of code, alias sequences fields are names by which the entries in these sequences can be accessed.
By default fields gives the first column the name “code”. The first column is the vector of first entries in each of the sequences found in codes. Thence you can get the equivalent first column value with ob.code[value], where value can be a first column value, or a value in any of the other columns in that sequence.
You can give other columns names too, and access them in the same way - see the examples in the class docstring.
Parameters: | codes : sequence of sequences
fields : {(‘code’,) string sequence}, optional
map_maker: callable, optional :
|
---|
True if spatial image axes for img always preceed other axes
Parameters: | img : object
|
---|---|
Returns: | spatial_axes_first : bool
|