scenerygraphics / scenery

Flexible VR Visualisation for Volumetric and Geometric Data on the Java VM, powered by Kotlin and Vulkan.
https://scenery.graphics
GNU Lesser General Public License v3.0
130 stars 32 forks source link

Multiresolution-safe histograms #693

Closed skalarproduktraum closed 7 months ago

skalarproduktraum commented 7 months ago

This PR adapts the histogram creation code so it's safe for multiresolution volumes.

The logic will now also use a lower-resolution volume to generate histograms, such that large multiresolution volumes are not iterated voxel-by-voxel. By default, a maximum side length of 512 voxels is used. This fixes scenerygraphics/sciview#556.