Class: NIFTIFormat
Defined in: src/io/formats.ts:74
NIfTI-1 file format descriptor.
Extends
Constructors
Constructor
new NIFTIFormat(encoding?): NIFTIFormat;Defined in: src/io/formats.ts:75
Parameters
encoding?
"raw" | "gzip"
Returns
NIFTIFormat
Overrides
Properties
fileFormat
readonly fileFormat: string;Defined in: src/io/formats.ts:9
Inherited from
headerEncoding
readonly headerEncoding: string;Defined in: src/io/formats.ts:10
Inherited from
headerExtension
readonly headerExtension: string;Defined in: src/io/formats.ts:11
Inherited from
dataEncoding
readonly dataEncoding: string;Defined in: src/io/formats.ts:12
Inherited from
dataExtension
readonly dataExtension: string;Defined in: src/io/formats.ts:13
Inherited from
Methods
headerFileMatches()
headerFileMatches(fileName): boolean;Defined in: src/io/formats.ts:37
Check if file name matches header format.
Parameters
fileName
string
Returns
boolean
Inherited from
dataFileMatches()
dataFileMatches(fileName): boolean;Defined in: src/io/formats.ts:44
Check if file name matches data format.
Parameters
fileName
string
Returns
boolean
Inherited from
stripExtension()
stripExtension(fileName): string;Defined in: src/io/formats.ts:51
Strip extension from filename.
Parameters
fileName
string
Returns
string
Inherited from
getHeaderFile()
getHeaderFile(baseName): string;Defined in: src/io/formats.ts:59
Get header filename from base name.
Parameters
baseName
string
Returns
string
Inherited from
getDataFile()
getDataFile(baseName): string;Defined in: src/io/formats.ts:66
Get data filename from base name.
Parameters
baseName
string
Returns
string
Inherited from
fileMatches()
fileMatches(fileName): Promise<boolean>;Defined in: src/io/formats.ts:80
Check if a file matches this format and both header/data files exist.
Parameters
fileName
string
Returns
Promise<boolean>