Realm

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.

FnRust public API

Function Documentation

pub fn clahe( input: &Image, clip_limit: f32, tile_width: u32, tile_height: u32 ) -> Result<Image>
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.