pub fn equalize_histogram_gpu(
runtime: &WgpuRuntime,
source: &GpuImage,
) -> SpatialResult<GpuImage>Expand description
Equalizes a resident one-channel u8 image with CPU-compatible byte rounding.
Histogram, inclusive CDF, lookup and image application stay on the GPU. Constant images preserve their original byte. Metadata is preserved. Five compute passes run without payload readback or implicit host synchronization. Binary64 rounding behavior of the CPU reference is emulated with u32 words; no shader float64 capability is required. Input is limited to u32::MAX pixels.