digraph inheritance6c55a609a4 { rankdir=LR; ratio=compress; fontsize=14; size="6.0, 8.0"; "Header" [shape=ellipse,URL="nibabel.spatialimages.Header.html#nibabel.spatialimages.Header",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "PARRECHeader" [shape=ellipse,URL="#nibabel.parrec.PARRECHeader",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "Header" -> "PARRECHeader" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
PAR/REC header
Parameters : | info : dict
image_defs : array
|
---|
Returns scaled image data.
Behaves identical to PARRECHeader.raw_data_from_fileobj(), but returns scaled image data. This causes the images data to be loaded into memory.
Compute affine transformation into scanner space.
The method only considers global rotation and offset settings in the header and ignore potentially deviating information in the image definitions.
Parameters : | origin : {‘scanner’, ‘fov’}
|
---|---|
Returns : | array :
|
Returns scaling slope and intercept.
Parameters : | method : {‘fp’, ‘dv’}
|
---|
Notes
The PAR header contains two different scaling settings: ‘dv’ (value on console) and ‘fp’ (floating point value). Here is how they are defined:
PV: value in REC RS: rescale slope RI: rescale intercept SS: scale slope
DV = PV * RS + RI FP = DV / (RS * SS)
Return the shape of the binary blob in the REC file.
Returns : | tuple :
|
---|
Return the number of dimensions of the image data.
Returns the slice orientation label.
Returns : | {‘transversal’, ‘sagital’, ‘coronal’} : |
---|
Returns the spatial extent of a voxel.
Returns : | Array : |
---|
Returns memmap array of raw unscaled image data.
Array axes correspond to x,y,z,t.