oa::image::clahe
Contrast-limited adaptive histogram equalization per plane. Each plane is split into tile_width x tile_height tiles, quantized into 256 uniform buckets over [0, 1], clipped at clip_limit times the per-bin average with the excess spread uniformly, and remapped through bilinear-interpolated tile lookup tables following the CLAHE contract. Errors Returns an error unless the image is nonempty FP32 NCHW/CHW, clip_limit is finite and positive, both tile extents are nonzero, and all sizes fit the shader ABI.
Function Documentation
Contrast-limited adaptive histogram equalization per plane. Each plane is split into tile_width x tile_height tiles, quantized into 256 uniform buckets over [0, 1], clipped at clip_limit times the per-bin average with the excess spread uniformly, and remapped through bilinear-interpolated tile lookup tables following the CLAHE contract. Errors Returns an error unless the image is nonempty FP32 NCHW/CHW, clip_limit is finite and positive, both tile extents are nonzero, and all sizes fit the shader ABI.