Back to Node List

Auto Levels

auto_levels

Automatically stretches the value range so the darkest and brightest areas reach full range

Reviewed
Guide available
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
画像
input
Image
Required
補正する画像です

Output Ports

NameTypeDescription
画像
output
Image
補正後の画像です

Parameters

NameTypeDefaultRangeDescription / Options
判定基準
source
Enum
OKLCH-L

どの値を引き伸ばすかです

  • OKLCH 明度OKLCH-L
    見た目の明るさで判定します。影やハイライトなど、目で見た明暗に合わせたい時に使います。
  • OKLCH 彩度OKLCH-C
    色の鮮やかさで判定します。くすんだ色と鮮やかな色を分けたい時に使います。
  • HSV 彩度HSV-S
    HSV の鮮やかさで判定します。一般的な色相・彩度・明度の感覚で選びたい時に使います。
  • HSV 明度HSV-V
    RGB の一番明るいチャンネルを基準にします。光った色や原色の強さを見たい時に使います。
  • RGB 赤RGB-R
    赤の強さで判定します。赤みだけを抜き出したい時に使います。
  • RGB 緑RGB-G
    緑の強さで判定します。緑成分だけを抜き出したい時に使います。
  • RGB 青RGB-B
    青の強さで判定します。青成分だけを抜き出したい時に使います。
  • アルファAlpha
    透明度で判定します。不透明な形だけをマスクにしたい時に使います。
  • 輝度Luminance
    RGB から計算した明るさで判定します。OKLCH より単純な白黒変換に近い結果が欲しい時に使います。
外れ値カット %
clip_percent
Float
10–10 / step 0.1

引き伸ばす前に、上下それぞれこの割合の極端なピクセルを無視します

強さ
strength
Float
10–1 / step 0.01

0で元のまま、1で完全に引き伸ばした結果になります

Overview

When noise or a height map is clustered around mid-gray, this correction makes the whole image crisp with a single node. To set the range manually, use Levels.

Technical details

  • Fully transparent pixels are excluded from both range calculation and correction.
  • If every pixel has the same value (a zero-width range), the image passes through.
  • clip_percent guards against outliers so a few blown highlights or crushed shadows do not determine the range.

Usage tips

  • When noise or a height map looks flat, insert this node before spending time on parameters. It provides a more stable input for gradient_map or threshold.
  • Use strength to blend the effect (0.5 expands the range halfway). Reduce it if the full effect looks unnatural.
  • clip_percent (1% by default) is insurance against a few extreme pixels. It prevents a single highlight from keeping the rest of the range compressed.

Common pitfalls

  • Brightness varies between variants: automatic correction depends on the input distribution, so every seed can use a different reference when batch-producing. For batch work, fixed values in manual levels produce more consistent results.
  • Nothing changes: the image already uses the full range, or every pixel has the same value and passes through. Use a manual adjustment such as tone_curve if you still need a change.

Examples

  1. Normalize noise: NoiseAuto Levels expands mid-heavy noise to the full range before sending it to Gradient Map.
  2. Adjust a height map: normalize the output from Height From Image to strengthen the shading from Quick Shade.

Related nodes

  • levels — the manual-range version, which is more stable for batch production
  • histogram_scan — when you want to inspect the distribution itself
  • gradient_map / threshold — the go-to destinations after normalization
Back to Node List
Auto Levels — PixPipeline Node Reference