/VapourSynth-EqualizeHist

Vapoursynth Histogram Equalization and CLAHE (Contrast Limited Adaptive Histogram Equalization)

Primary LanguageC++MIT LicenseMIT

EqualizeHist

Histogram Equalization for Vapoursynth.

Usage

ehist.EqualizeHist(vnode clip)

Parameters:

  • clip
    A clip to process. 8-16 bit integer only.

CLAHE

Contrast Limited Adaptive Histogram Equalization for Vapoursynth.
This filter uses OpenCV internally because I don't know how to do tiles in VS (please send help).

Usage

ehist.CLAHE(vnode clip[, float limit=7, int tile=3])

Parameters:

  • clip
    A clip to process. 8-16 bit integer only.
  • limit
    Threshold for contrast limiting.
    For the 16 bit clip to have the same result as the 8 bit clip you have to multiply the limit by 256.
  • tile
    Tile size for histogram equalization.

Example

Luma 16 bit

src

EqualizeHist 16 bit

equalizehist

CLAHE(limit=15.0, tile=3) 16 bit

CLAHE