-
Notifications
You must be signed in to change notification settings - Fork 30
API
nifti
Kind: global variable
-
nifti :
*
|Object
-
.NIFTI1 :
function
- new nifti.NIFTI1()
- .readHeader(data)
-
.toFormattedString() ⇒
string
-
.getDatatypeCodeString(code) ⇒
string
-
.getTransformCodeString(code) ⇒
string
-
.getUnitsCodeString(code) ⇒
string
-
.getQformMat() ⇒
Array.<Array.<number>>
-
.convertNiftiQFormToNiftiSForm(qb, qc, qd, qx, qy, qz, dx, dy, dz, qfac) ⇒
Array.<Array.<number>>
-
.convertNiftiSFormToNEMA(R) ⇒
string
-
.getExtensionLocation() ⇒
number
-
.getExtensionSize(data) ⇒
number
-
.getExtensionCode(data) ⇒
number
-
.NIFTI2 :
function
- new nifti.NIFTI2()
-
.getExtensionSize ⇒
number
-
.getExtensionCode ⇒
number
-
.getDatatypeCodeString ⇒
string
-
.getTransformCodeString ⇒
string
-
.getUnitsCodeString ⇒
string
-
.getQformMat ⇒
Array.<Array.<number>>
-
.convertNiftiQFormToNiftiSForm ⇒
Array.<Array.<number>>
-
.convertNiftiSFormToNEMA ⇒
string
- .readHeader(data)
-
.toFormattedString() ⇒
string
-
.getExtensionLocation() ⇒
number
-
.isNIFTI1(data) ⇒
boolean
-
.isNIFTI2(data) ⇒
boolean
-
.isNIFTI(data) ⇒
boolean
-
.isCompressed(data) ⇒
boolean
-
.decompress(data) ⇒
ArrayBuffer
-
.readHeader(data) ⇒
NIFTI1
|NIFTI2
|null
-
.hasExtension(header) ⇒
boolean
-
.readImage(header, data) ⇒
ArrayBuffer
-
.readExtension(header, data) ⇒
ArrayBuffer
-
.readExtensionData(header, data) ⇒
ArrayBuffer
-
.NIFTI1 :
Kind: static class of nifti
Properties
Name | Type | Description |
---|---|---|
littleEndian | boolean |
|
dim_info | number |
|
dims | Array.<number> |
image dimensions |
intent_p1 | number |
|
intent_p2 | number |
|
intent_p3 | number |
|
intent_code | number |
|
datatypeCode | number |
|
numBitsPerVoxel | number |
|
slice_start | number |
|
slice_end | number |
|
slice_code | number |
|
pixDims | Array.<number> |
voxel dimensions |
vox_offset | number |
|
scl_slope | number |
|
scl_inter | number |
|
xyzt_units | number |
|
cal_max | number |
|
cal_min | number |
|
slice_duration | number |
|
toffset | number |
|
description | string |
|
aux_file | string |
|
intent_name | string |
|
qform_code | number |
|
sform_code | number |
|
quatern_b | number |
|
quatern_c | number |
|
quatern_d | number |
|
quatern_x | number |
|
quatern_y | number |
|
quatern_z | number |
|
affine | Array.<Array.<number>> |
|
magic | string |
|
isHDR | boolean |
if hdr/img format |
extensionFlag | Array.<number> |
|
extensionSize | number |
|
extensionCode | number |
-
.NIFTI1 :
function
- new nifti.NIFTI1()
- .readHeader(data)
-
.toFormattedString() ⇒
string
-
.getDatatypeCodeString(code) ⇒
string
-
.getTransformCodeString(code) ⇒
string
-
.getUnitsCodeString(code) ⇒
string
-
.getQformMat() ⇒
Array.<Array.<number>>
-
.convertNiftiQFormToNiftiSForm(qb, qc, qd, qx, qy, qz, dx, dy, dz, qfac) ⇒
Array.<Array.<number>>
-
.convertNiftiSFormToNEMA(R) ⇒
string
-
.getExtensionLocation() ⇒
number
-
.getExtensionSize(data) ⇒
number
-
.getExtensionCode(data) ⇒
number
The NIFTI1 constructor.
Reads the header data.
Kind: instance method of NIFTI1
Param | Type |
---|---|
data | ArrayBuffer |
Returns a formatted string of header fields.
Kind: instance method of NIFTI1
Returns a human-readable string of datatype.
Kind: instance method of NIFTI1
Param | Type |
---|---|
code | number |
Returns a human-readable string of transform type.
Kind: instance method of NIFTI1
Param | Type |
---|---|
code | number |
Returns a human-readable string of spatial and temporal units.
Kind: instance method of NIFTI1
Param | Type |
---|---|
code | number |
Returns the qform matrix.
Kind: instance method of NIFTI1
niftI1.convertNiftiQFormToNiftiSForm(qb, qc, qd, qx, qy, qz, dx, dy, dz, qfac) ⇒ Array.<Array.<number>>
Converts qform to an affine. (See http://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1_io.c)
Kind: instance method of NIFTI1
Param | Type |
---|---|
qb | number |
qc | number |
qd | number |
qx | number |
qy | number |
qz | number |
dx | number |
dy | number |
dz | number |
qfac | number |
Converts sform to an orientation string (e.g., XYZ+--). (See http://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1_io.c)
Kind: instance method of NIFTI1
Param | Type |
---|---|
R | Array.<Array.<number>> |
Returns the byte index of the extension.
Kind: instance method of NIFTI1
Returns the extension size.
Kind: instance method of NIFTI1
Param | Type |
---|---|
data | DataView |
Returns the extension code.
Kind: instance method of NIFTI1
Param | Type |
---|---|
data | DataView |
Kind: static class of nifti
Properties
Name | Type | Description |
---|---|---|
littleEndian | boolean |
|
dim_info | number |
|
dims | Array.<number> |
image dimensions |
intent_p1 | number |
|
intent_p2 | number |
|
intent_p3 | number |
|
intent_code | number |
|
datatypeCode | number |
|
numBitsPerVoxel | number |
|
slice_start | number |
|
slice_end | number |
|
slice_code | number |
|
pixDims | Array.<number> |
voxel dimensions |
vox_offset | number |
|
scl_slope | number |
|
scl_inter | number |
|
xyzt_units | number |
|
cal_max | number |
|
cal_min | number |
|
slice_duration | number |
|
toffset | number |
|
description | string |
|
aux_file | string |
|
intent_name | string |
|
qform_code | number |
|
sform_code | number |
|
quatern_b | number |
|
quatern_c | number |
|
quatern_d | number |
|
quatern_x | number |
|
quatern_y | number |
|
quatern_z | number |
|
affine | Array.<Array.<number>> |
|
magic | string |
|
extensionFlag | Array.<number> |
-
.NIFTI2 :
function
- new nifti.NIFTI2()
-
.getExtensionSize ⇒
number
-
.getExtensionCode ⇒
number
-
.getDatatypeCodeString ⇒
string
-
.getTransformCodeString ⇒
string
-
.getUnitsCodeString ⇒
string
-
.getQformMat ⇒
Array.<Array.<number>>
-
.convertNiftiQFormToNiftiSForm ⇒
Array.<Array.<number>>
-
.convertNiftiSFormToNEMA ⇒
string
- .readHeader(data)
-
.toFormattedString() ⇒
string
-
.getExtensionLocation() ⇒
number
The NIFTI2 constructor.
Returns the extension size.
Kind: instance property of NIFTI2
Param | Type |
---|---|
data | DataView |
Returns the extension code.
Kind: instance property of NIFTI2
Param | Type |
---|---|
data | DataView |
Returns a human-readable string of datatype.
Kind: instance property of NIFTI2
Param | Type |
---|---|
code | number |
Returns a human-readable string of transform type.
Kind: instance property of NIFTI2
Param | Type |
---|---|
code | number |
Returns a human-readable string of spatial and temporal units.
Kind: instance property of NIFTI2
Param | Type |
---|---|
code | number |
Returns the qform matrix.
Kind: instance property of NIFTI2
Converts qform to an affine. (See http://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1_io.c)
Kind: instance property of NIFTI2
Param | Type |
---|---|
qb | number |
qc | number |
qd | number |
qx | number |
qy | number |
qz | number |
dx | number |
dy | number |
dz | number |
qfac | number |
Converts sform to an orientation string (e.g., XYZ+--). (See http://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1_io.c)
Kind: instance property of NIFTI2
Param | Type |
---|---|
R | Array.<Array.<number>> |
Reads the header data.
Kind: instance method of NIFTI2
Param | Type |
---|---|
data | ArrayBuffer |
Returns a formatted string of header fields.
Kind: instance method of NIFTI2
Returns the byte index of the extension.
Kind: instance method of NIFTI2
Returns true if this data represents a NIFTI-1 header.
Kind: static method of nifti
Param | Type |
---|---|
data | ArrayBuffer |
Returns true if this data represents a NIFTI-2 header.
Kind: static method of nifti
Param | Type |
---|---|
data | ArrayBuffer |
Returns true if this data represents a NIFTI header.
Kind: static method of nifti
Param | Type |
---|---|
data | ArrayBuffer |
Returns true if this data is GZIP compressed.
Kind: static method of nifti
Param | Type |
---|---|
data | ArrayBuffer |
Returns decompressed data.
Kind: static method of nifti
Param | Type |
---|---|
data | ArrayBuffer |
Reads and returns the header object.
Kind: static method of nifti
Param | Type |
---|---|
data | ArrayBuffer |
Returns true if this header contains an extension.
Kind: static method of nifti
Param | Type |
---|---|
header |
NIFTI1 | NIFTI2
|
Returns the image data.
Kind: static method of nifti
Param | Type |
---|---|
header |
NIFTI1 | NIFTI2
|
data | ArrayBuffer |
Returns the extension data (including extension header).
Kind: static method of nifti
Param | Type |
---|---|
header |
NIFTI1 | NIFTI2
|
data | ArrayBuffer |
Returns the extension data.
Kind: static method of nifti
Param | Type |
---|---|
header |
NIFTI1 | NIFTI2
|
data | ArrayBuffer |