cornerstoneTools icon indicating copy to clipboard operation
cornerstoneTools copied to clipboard

Increasing Stack Scroll Speed

Open shivasuri opened this issue 4 years ago • 3 comments

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

  1. cornerstone.loadAndCacheImage every instance of every series in a given study
  2. cornerstone.loadImage + cornerstone.displayImage when switching b/w series. cornerstoneTools.addStackStateManager(element, ['stack']); and cornerstoneTools.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.

shivasuri avatar Jan 31 '21 02:01 shivasuri

@swederik @dannyrb do you have any thoughts on this :)

shivasuri avatar Feb 03 '21 05:02 shivasuri

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 :)

shivasuri avatar Feb 04 '21 05:02 shivasuri