Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

561 B
Raw Blame

equalize_clahe(..., slow_and_differentiable=True) builds its soft-histogram bin centres and bandwidth in float64 for a float64 image and in float32 for every other dtype. In 0.9.0 they were built in the default dtype: a float64 image was equalized with float32 centres, up to about 7e-5 relative away from a float64 computation, and a float64 default dtype changed the result for every input dtype, by up to 3e-2 for a bfloat16 image. The fast path is unchanged, and float32, float16 and bfloat16 results under the float32 default are bit-identical to 0.9.0.