clahe
result = clahe(image, tile_size=, [clip_limit=2.0])
Input: image, tile_size, clip_limit · Output: result
What it is
image is an Image; tile_size is a required positive integer, the pixel side length of each equalization tile (the last row/column of tiles shrinks to fit). Contrast-Limited Adaptive Histogram Equalization: imequalize's tile-based local counterpart, with a clipped per-tile histogram (clip threshold clip_limit * tile_pixel_count / 256) and — the part a naive per-tile implementation skips — bilinear interpolation of each pixel's mapping between its four nearest tile centers, so there is no hard seam at a tile boundary. RGB-preserving via the same luma-ratio rescale imequalize uses.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
result = clahe(image, tile_size=, [clip_limit=2.0]) | image Imageimage is an Image.tile_size —tile_size is a required positive integer, the pixel side length of each equalization tile (the last row/column of tiles shrinks to fit).clip_limit optional (default 2.0)Contrast-Limited Adaptive Histogram Equalization: imequalize's tile-based local counterpart, with a clipped per-tile histogram (clip threshold clip_limit * tile_pixel_count / 256) and — the part a naive per-tile implementation skips — bilinear interpolation of each pixel's mapping between its four nearest tile centers, so there is no hard seam at a tile boundary. | result Image | Returns an Image of the same dimensions. |
Examples
No documentation example calls this form yet. The Images chapter is where one belongs.
How it works
clahe(image, tile_size=, [clip_limit=2.0]) — Contrast- Limited Adaptive Histogram Equalization: imequalize's tile-based, contrast-clipped local counterpart, with the tile-to-tile bilinear interpolation that distinguishes real CLAHE from a naive independently-equalized-tile shortcut (see image::Image::clahe's doc comment).
From the note above this builtin in the interpreter, where the reasoning was written down as it was built.