extensions/xnat/src/utils/IO/classes/NIFTIReader.js
/**
   * _extractHeaders - Extracts what little header info NIFTI files have.
   *
   * @returns {null}
   */
Extracts what little header info NIFTI files have.
@returns {null}
Extracts what little header info NIFTI files have . @returns { null }
_extractHeaders() {
    this._niftiHeader = Nifti.readHeader(this._niftiArrayBuffer);
    this._niftiExtension = this._extractNiftiExtension();
    this._dimensions = {
      dimensionality: this._niftiHeader.dims[0],
      x: this._niftiHeader.dims[1], 
      y: this._niftiHeader.dims[2],
      z: this._niftiHeader.dims[3],
      sliceLength: this._niftiHeader.dims[1] * this._niftiHeader.dims[2],
    };
  }
_extractHeaders ( ) { this . _niftiHeader = Nifti . readHeader ( this . _niftiArrayBuffer ) ; this . _niftiExtension = this . _extractNiftiExtension ( ) ; this . _dimensions = { dimensionality : this . _niftiHeader . dims [ 0 ] , x : this . _niftiHeader . dims [ 1 ] , y : this . _niftiHeader . dims [ 2 ] , z : this . _niftiHeader . dims [ 3 ] , sliceLength : this . _niftiHeader . dims [ 1 ] * this . _niftiHeader . dims [ 2 ] , } ; }
_extractHeaders - Extracts what little header info NIFTI files have.
_extractHeaders - Extracts what little header info NIFTI files have .
// This isn't an off-by-one error, [0] contains the dimensionality.