How to use the dicom-parser.createJPEGBasicOffsetTable function in dicom-parser

To help you get started, we’ve selected a few dicom-parser examples, based on popular ways it is used in public projects.

github FNNDSC / ami / src / parsers / parsers.dicom.js View on Github external
) {
      // Basic Offset Table is not empty
      return DicomParser.readEncapsulatedImageFrame(
        this._dataSet,
        this._dataSet.elements.x7fe00010,
        frameIndex
      );
    }

    if (this.framesAreFragmented()) {
      // Basic Offset Table is empty
      return DicomParser.readEncapsulatedImageFrame(
        this._dataSet,
        this._dataSet.elements.x7fe00010,
        frameIndex,
        DicomParser.createJPEGBasicOffsetTable(this._dataSet, this._dataSet.elements.x7fe00010)
      );
    }

    return DicomParser.readEncapsulatedPixelDataFromFragments(
      this._dataSet,
      this._dataSet.elements.x7fe00010,
      frameIndex
    );
  }

dicom-parser

Javascript parser for DICOM Part 10 data

MIT
Latest version published 9 days ago

Package Health Score

84 / 100
Full package analysis

Similar packages