Skip to content

Local Contrast

Node icon
Color

Enhances local detail and clarity using CLAHE (Contrast Limited Adaptive Histogram Equalization).

Local Contrast boosts detail in localized regions of the image. Unlike global Levels or Curves, it operates on small tiles and equalizes their histograms independently. This brings out texture and detail in both shadows and highlights simultaneously.

The clip limit controls how much contrast is amplified. Higher values mean stronger enhancement but may introduce noise. Tile size controls how “local” the effect is.

Pins

ImageImage
InputRequired
MaskMask
InputOptional
ImageImage
Output

Enhancement

Clip LimitNumber
Default: 2.0 Range: 1.0–40.0

CLAHE clip limit. Higher = more aggressive contrast enhancement

Tile Size

Tile WidthInteger
Default: 8 Range: 2–128

Tile grid width. Smaller = finer local adaptation

Tile HeightInteger
Default: 8 Range: 2–128

Tile grid height

Mask

Mask FitChoice
Default: None (native size)
Mask connected

How the mask is sized when it doesn't match the image. None: center at native size, no scaling. Stretch: scale to exactly match image dimensions. Fit: scale to fit inside image, preserving aspect ratio. Fill: scale to fill image, cropping overflow

  • None (native size)Center the mask at its native size — no resizing. Unmasked regions are unaffected.
  • StretchStretch the mask to exactly match the image dimensions. May distort the mask shape.
  • Fit (letterbox)Scale the mask to fit inside the image, preserving aspect ratio. Letterboxes where needed.
  • Fill (crop)Scale the mask to fill the image, preserving aspect ratio. Crops edges if aspect ratios differ.
  • A clip limit of 2–4 provides subtle clarity enhancement without artifacts.
  • Smaller tile sizes (4–8) create more localized enhancement; larger (16–32) is more global.
  • Use after Denoise to restore detail that denoising may have softened.
  • Connect a mask input to enhance detail in specific regions only.