cornerstoneTools
cornerstoneTools copied to clipboard
Increasing Stack Scroll Speed
Prerequisites
- [5.0.0] Which version are you using? (Is it latest?) Cornerstone version 2.3.0
- [Yes] Are you reporting to the correct repository?
- [Yes, No] Did you search existing issues? (Were any related?)
Description
Is there a suggested MO for scrolling through images faster? I'm currently using the stack scroll tool, but scrolling is pretty glitchy/takes time to load. What is the suggested approach for caching series/past studies, or the approach which OHIF viewer follows? I've tried caching entire studies (i.e. every image in every series) but this does not work.
My current, brute force approach is to
-
cornerstone.loadAndCacheImage
every instance of every series in a given study -
cornerstone.loadImage
+cornerstone.displayImage
when switching b/w series.cornerstoneTools.addStackStateManager(element, ['stack']);
andcornerstoneTools.addToolState(element, 'stack', stack);
to make use of the stack extension.
I would like there to be no lag scrolling through images. When I scroll through an entire series once it is fast (lagless) the second time around. I'm not sure if I'm populating the cache in a way it's not meant to be. Any ideas would be much appreciated.
@swederik @dannyrb do you have any thoughts on this :)
Debugging update:
Scrolling through images duplicates the cache as it's not using the images I manually cached. I'm using the stack scroll mousewheel tool. Why isn't it using the cache on the first scroll through?
ccing @chafey in case he has some insights :)