feat: use wadors instead of streaming wadors for volume loading (#3109)
This commit is contained in:
1 parent
ac90df356e
commit
1d1b33224a
8 files changed
+110
-48
No files matched your search
@@ -43,9 +43,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "7.17.9",
|
||||
"@cornerstonejs/core": "^0.22.3",
|
||||
"@cornerstonejs/streaming-image-volume-loader": "^0.6.11",
|
||||
"@cornerstonejs/tools": "^0.30.6",
|
||||
"@cornerstonejs/core": "^0.25.0",
|
||||
"@cornerstonejs/streaming-image-volume-loader": "^0.8.2",
|
||||
"@cornerstonejs/tools": "^0.34.0",
|
||||
"@kitware/vtk.js": "25.9.0",
|
||||
"html2canvas": "^1.4.1",
|
||||
"lodash.debounce": "4.0.8",
|
||||
|
||||
@@ -10,15 +10,11 @@ import {
|
||||
EVENTS,
|
||||
metaData,
|
||||
volumeLoader,
|
||||
imageLoader,
|
||||
imageLoadPoolManager,
|
||||
Settings,
|
||||
} from '@cornerstonejs/core';
|
||||
import { Enums, utilities, ReferenceLinesTool } from '@cornerstonejs/tools';
|
||||
import {
|
||||
cornerstoneStreamingImageVolumeLoader,
|
||||
sharedArrayBufferImageLoader,
|
||||
} from '@cornerstonejs/streaming-image-volume-loader';
|
||||
import { cornerstoneStreamingImageVolumeLoader } from '@cornerstonejs/streaming-image-volume-loader';
|
||||
|
||||
import initWADOImageLoader from './initWADOImageLoader';
|
||||
import initCornerstoneTools from './initCornerstoneTools';
|
||||
@@ -124,11 +120,6 @@ export default async function init({
|
||||
);
|
||||
HangingProtocolService.registerImageLoadStrategy('nth', nthLoader);
|
||||
|
||||
imageLoader.registerImageLoader(
|
||||
'streaming-wadors',
|
||||
sharedArrayBufferImageLoader
|
||||
);
|
||||
|
||||
metaData.addProvider(metadataProvider.get.bind(metadataProvider), 9999);
|
||||
|
||||
imageLoadPoolManager.maxNumRequests = {
|
||||
|
||||
+1
-9
@@ -7,7 +7,6 @@ import {
|
||||
VolumeViewportData,
|
||||
} from '../../types/CornerstoneCacheService';
|
||||
|
||||
const VOLUME_IMAGE_LOADER_SCHEME = 'streaming-wadors';
|
||||
const VOLUME_LOADER_SCHEME = 'cornerstoneStreamingImageVolume';
|
||||
|
||||
class CornerstoneCacheService {
|
||||
@@ -238,14 +237,7 @@ class CornerstoneCacheService {
|
||||
dataSource
|
||||
);
|
||||
|
||||
if (stackImageIds[0].startsWith('dicomfile')) {
|
||||
return stackImageIds;
|
||||
}
|
||||
|
||||
return stackImageIds.map(imageId => {
|
||||
const imageURI = utils.imageIdToURI(imageId);
|
||||
return `${VOLUME_IMAGE_LOADER_SCHEME}:${imageURI}`;
|
||||
});
|
||||
return stackImageIds;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user