Shortcuts

mmcv.image.clahe

mmcv.image.clahe(img, clip_limit=40.0, tile_grid_size=(8, 8))[源代码]

Use CLAHE method to process the image.

See ZUIDERVELD,K. Contrast Limited Adaptive Histogram Equalization[J]. Graphics Gems, 1994:474-485. for more information.

参数
  • img (ndarray) – Image to be processed.

  • clip_limit (float) – Threshold for contrast limiting. Default: 40.0.

  • tile_grid_size (tuple[int]) – Size of grid for histogram equalization. Input image will be divided into equally sized rectangular tiles. It defines the number of tiles in row and column. Default: (8, 8).

返回

The processed image.

返回类型

ndarray