Skip to main content

Function: provisionReducedResolutionStrategy()

provisionReducedResolutionStrategy(__namedParameters): IVolumeRenderStrategy | undefined

Builds the reduced-resolution strategy that the GPU settings can hold. With final downsampling off, this builds nothing.

The reduction applies a separate factor to each axis. An edge of 2049 voxels exceeds a limit of 2048 on one axis and by one voxel, so the reduction takes that one axis and leaves the other two. A uniform reduction by 2 on three axes would take 8 times fewer voxels for an excess of one voxel.

Intensity volumes reduce with the box average. Labelmaps set reductionStatistic to foregroundMajority so segment indices stay real labels.

No derived representation is built. The texture fills each slice by the statistic straight from the frames of the volume, at no cost in CPU memory, and ImageVolume.getGridQuality gives the record of that texture. A derivation of a fully loaded volume would reduce every voxel here.

Parameters​

• __namedParameters: VolumeStrategyProvisionContext

Returns​

IVolumeRenderStrategy | undefined

Defined in​

packages/core/src/RenderingEngine/helpers/volumeRenderStrategy.ts:546