We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is where the image is loaded in cornerstone.
https://github.com/cornerstonejs/cornerstone/blob/56f51a0752955bab8a308bc900b95e28992cf3ea/src/imageLoader.js#L27
function loadImageFromImageLoader (imageId, options) { const colonIndex = imageId.indexOf(':'); const scheme = imageId.substring(0, colonIndex); const loader = imageLoaders[scheme]; if (loader === undefined || loader === null) { if (unknownImageLoader !== undefined) { return unknownImageLoader(imageId); } throw new Error('loadImageFromImageLoader: no image loader for imageId'); } const imageLoadObject = loader(imageId, options); // Broadcast an image loaded event once the image is loaded imageLoadObject.promise.then(function (image) { triggerEvent(events, EVENTS.IMAGE_LOADED, { image }); }, function (error) { const errorObject = { imageId, error }; triggerEvent(events, EVENTS.IMAGE_LOAD_FAILED, errorObject); }); return imageLoadObject; }
The text was updated successfully, but these errors were encountered:
This is where is is invoked in OHIF (cornerstone.loadImage() is a wrapper).
cornerstone.loadImage()
OHIF-Viewers/platform/core/src/classes/StudyPrefetcher.js
Line 144 in 489d4b0
prefetchImageIds(imageIds) { const nonCachedImageIds = this.filterCachedImageIds(imageIds); const imageLoadPoolManager = cornerstone.imageLoadPoolManager; let requestFn; if (this.options.preventCache) { requestFn = id => cornerstone.loadImage(id); } else { requestFn = id => cornerstone.loadAndCacheImage(id); }
Sorry, something went wrong.
No branches or pull requests
This is where the image is loaded in cornerstone.
https://github.com/cornerstonejs/cornerstone/blob/56f51a0752955bab8a308bc900b95e28992cf3ea/src/imageLoader.js#L27
The text was updated successfully, but these errors were encountered: