Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
);
}
const columns = this.columns();
const rows = this.rows();
const samplesPerPixel = this.samplesPerPixel(frameIndex);
const pixelRepresentation = this.pixelRepresentation(frameIndex);
// format data for the RLE decoder
const imageFrame = {
pixelRepresentation,
bitsAllocated,
planarConfiguration,
columns,
rows,
samplesPerPixel,
};
const pixelData = DicomParser.readEncapsulatedPixelDataFromFragments(
this._dataSet,
this._dataSet.elements.x7fe00010,
frameIndex
);
const decoded = RLEDecoder(imageFrame, pixelData);
return decoded.pixelData;
}