EnhancementIntermediate

Histogram Stretching

Expand tonal range to reveal hidden detail in planetary images

How It Works

1

Analyze the histogram: Open the histogram display to visualize how pixel values are distributed in your stacked image. Planetary images typically show a narrow spike covering only 10-20% of the available tonal range, leaving most of the 0-65535 (16-bit) range unused.

2

Identify the data boundaries: Find where your actual image data begins (left edge of the spike) and ends (right edge). Values outside this range are empty - pure black on the left, unused headroom on the right. These boundaries are your starting reference.

3

Set the black point: Move the black point (shadows slider) to just below where your data begins. This maps the darkest real data to true black. Be careful not to clip shadow detail - the space between planets and sky should remain dark but not crushed to pure black.

4

Set the white point: Move the white point (highlights slider) to just above where your data ends. This maps your brightest data to white. For planets, the brightest areas are often limb brightening or polar caps - avoid clipping these to pure white.

5

Apply the initial stretch: With black and white points set, the image contrast expands dramatically. What appeared as a dim, low-contrast disk now shows visible cloud bands, surface features, and color variation. This reveals detail that was always present but invisible.

6

Adjust the midtones (gamma): Use the midtone slider or gamma control to balance the overall brightness. Moving midtones left brightens the image; moving right darkens it. Find the point where cloud bands and surface features have optimal contrast without crushing shadows.

7

Apply curves for fine control: For advanced adjustments, use a curves tool. An S-curve increases contrast in the midtones while protecting highlights and shadows. You can target specific tonal ranges - darken the space around the planet or brighten specific features.

8

Consider CLAHE for local contrast: CLAHE (Contrast Limited Adaptive Histogram Equalization) enhances local contrast independently across image regions. This can reveal subtle variations in cloud bands that global stretching misses. Use modest settings to avoid artificial-looking results.

Pro Tips

  • -Stacked planetary images often use only 10-20% of available tonal range - stretching is essential, not optional
  • -Stretching reveals cloud bands, polar caps, and surface features that appear absent in the unstretched image
  • -Use NMAD-based auto-stretch for consistent, reproducible results that avoid subjective adjustment
  • -Always work in 16-bit depth to preserve tonal information - stretching in 8-bit creates banding artifacts
  • -Over-stretching creates noise and color artifacts - if you see grain appearing, back off the stretch
  • -Apply stretching BEFORE wavelet sharpening - sharpening magnifies any stretching artifacts

Related Algorithms

Related Terms

Try Histogram Stretching

Upload your planetary video and apply professional techniques with Uranum.

Start Processing