fix(dicom overlay): Handle special cases of ArrayBuffer for various DICOM overlay attributes. (#3684)

Co-authored-by: Alireza <ar.sedghi@gmail.com>
This commit is contained in:
Joe BoccanfusoandAlireza authored and GitHub committed 2023-10-03 11:44:56 -04:00
1 parent 8a335bd03d
commit e36a604331
5 files changed
+97 -55

No files matched your search

@@ -160,6 +160,8 @@ class ImageOverlayViewerTool extends AnnotationDisplayTool {
let pixelData = null;
if (overlay.pixelData.Value) {
pixelData = overlay.pixelData.Value;
} else if (overlay.pixelData instanceof Array) {
pixelData = overlay.pixelData[0];
} else if (overlay.pixelData.retrieveBulkData) {
pixelData = await overlay.pixelData.retrieveBulkData();
}