Skip to content

Image range and histogram computation: cache, defer and/or optimize  #567

@PaulHax

Description

@PaulHax

To speed time to first image render, we can improve the range and histrogram computation in useAutoRangeValues:
https://github.com/Kitware/VolView/blob/main/src/composables/useWindowingConfigInitializer.ts#L31-L38

The image is not rendered until the autoRangeValues are computed. Can we defer the computation and do it in a web worker?

The above chunk of code takes ~570ms for the CT volume here:
https://volview-dev.kitware.app/?urls=[https://data.kitware.com/api/v1/file/63f39e907b0dfcc98f669cc6/download/joe-slim-pet-ct.zip]
Can we optimize/parallelize?

autoRangeValues is computed 3 times for the same image on the initial load. Probably not needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions