UNPKG

@cornerstonejs/dicom-image-loader

Version:

Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file

26 lines (25 loc) 1.42 kB
import { metaData } from '@cornerstonejs/core'; function getImageFrame(imageId) { const imagePixelModule = metaData.get('imagePixelModule', imageId); return { samplesPerPixel: imagePixelModule.samplesPerPixel, photometricInterpretation: imagePixelModule.photometricInterpretation, planarConfiguration: imagePixelModule.planarConfiguration, rows: imagePixelModule.rows, columns: imagePixelModule.columns, bitsAllocated: imagePixelModule.bitsAllocated, bitsStored: imagePixelModule.bitsStored, pixelRepresentation: imagePixelModule.pixelRepresentation, smallestPixelValue: imagePixelModule.smallestPixelValue, largestPixelValue: imagePixelModule.largestPixelValue, redPaletteColorLookupTableDescriptor: imagePixelModule.redPaletteColorLookupTableDescriptor, greenPaletteColorLookupTableDescriptor: imagePixelModule.greenPaletteColorLookupTableDescriptor, bluePaletteColorLookupTableDescriptor: imagePixelModule.bluePaletteColorLookupTableDescriptor, redPaletteColorLookupTableData: imagePixelModule.redPaletteColorLookupTableData, greenPaletteColorLookupTableData: imagePixelModule.greenPaletteColorLookupTableData, bluePaletteColorLookupTableData: imagePixelModule.bluePaletteColorLookupTableData, pixelData: undefined, imageId, }; } export default getImageFrame;