feat(imageLoader):Add an nth image loader strategy (#10) (#3044)

* feat(imageLoader):Add an nth image loader strategy (#10)

* Updates for PR for nth menu

* performance:Prior implementation was O(n^2), taking about 50 ms

* feat:Nth image loader, added docs as requested
This commit is contained in:
Bill Wallace authored and GitHub committed 2022-12-29 11:00:13 -05:00
1 parent 9a03bde0ae
commit 00e797801d
8 files changed
+212 -3

No files matched your search

+2
View File
@@ -27,6 +27,7 @@ import { connectToolsToMeasurementService } from './initMeasurementService';
import callInputDialog from './utils/callInputDialog';
import initCineService from './initCineService';
import interleaveCenterLoader from './utils/interleaveCenterLoader';
import nthLoader from './utils/nthLoader';
import interleaveTopToBottom from './utils/interleaveTopToBottom';
const cs3DToolsEvents = Enums.Events;
@@ -121,6 +122,7 @@ export default async function init({
'interleaveTopToBottom',
interleaveTopToBottom
);
HangingProtocolService.registerImageLoadStrategy('nth', nthLoader);
imageLoader.registerImageLoader(
'streaming-wadors',