Histogram Equalization

Improve Image Contrast

Global HE & CLAHE. Luminance, per-channel, grayscale. Strength, contrast preservation, denoise. Histogram visualization, analytics. Export PNG, JPEG, WebP, AVIF.

Histogram Equalization Settings

Standard histogram equalization

Equalizes brightness while preserving color ratios

0% → original, 100% → full equalization. Many images look harsh at full — try 60–80%.

Drag & drop images here

or

Why Use Histogram Equalization?

Histogram equalization improves image contrast by redistributing brightness values, revealing detail in both dark and bright areas. It's essential for enhancing underexposed images, scanned documents, and photos with poor contrast or uneven lighting.

Benefits of Histogram Equalization

  • Contrast Improvement: Enhance overall image contrast and detail visibility
  • Detail Revelation: Reveal hidden detail in both dark and bright areas
  • Brightness Balance: Create more uniform brightness distribution
  • Color Preservation: Luminance mode preserves natural colors while improving contrast
  • Automatic Enhancement: One-click solution for contrast improvement

How Histogram Equalization Works

Histogram equalization analyzes the brightness distribution in an image and redistributes pixel values to create a more uniform histogram. This process spreads out the brightness values across the full range, improving contrast and revealing detail.

Equalization Process

  • Histogram Analysis: Tool analyzes the brightness distribution (histogram) of the image
  • Cumulative Distribution: Calculates cumulative distribution function of brightness values
  • Value Mapping: Maps original brightness values to new values for uniform distribution
  • Pixel Transformation: Transforms each pixel's brightness according to the mapping
  • Output Generation: Generates enhanced image with improved contrast

Common Use Cases

Histogram equalization is valuable for various image enhancement scenarios.

Underexposed Images

Enhance dark, underexposed photos by redistributing brightness values. Histogram equalization reveals detail in shadow areas while maintaining overall image quality.

Scanned Documents

Improve contrast in scanned documents that appear flat or have uneven lighting. Histogram equalization enhances text readability and document clarity.

Low-Contrast Photos

Enhance photos with poor contrast or flat appearance. Histogram equalization brings out detail and creates more visually appealing images with better contrast.

Frequently Asked Questions

What is histogram equalization?

Histogram equalization is a technique that redistributes pixel brightness values to create a more uniform distribution across the brightness range. This improves contrast by making dark areas lighter and light areas darker, revealing more detail throughout the image. It's particularly effective for images with poor contrast or uneven brightness distribution.

What's the difference between luminance and per-channel equalization?

Luminance equalization adjusts brightness while preserving color relationships, making it ideal for photos where you want to maintain natural colors. Per-channel equalization equalizes each color channel (red, green, blue) independently, which can create more dramatic contrast but may shift colors. Use luminance for photos, per-channel for maximum contrast when color shifts are acceptable.

When should I use histogram equalization?

Use histogram equalization for images with poor contrast, uneven lighting, or when you want to reveal more detail in both dark and bright areas. It's particularly useful for underexposed or overexposed images, scanned documents, and images with flat, low-contrast appearance. Images that already have good contrast may not benefit much from this technique.

Will histogram equalization affect image quality?

Histogram equalization improves contrast and detail visibility without degrading image quality. However, it may make some images look slightly unnatural if over-applied. The technique redistributes pixel values but doesn't introduce compression artifacts or quality loss. The original image structure is preserved, just with improved brightness distribution.