RH Contrast Shaper
dctlsRH Contrast Shaper
⚖️ Photometric Exposure & Dynamic Contrast Engine
RH Contrast Shaper (formerly RH MidControl) is a precision exposure and contrast tool designed for scene-referred DaVinci Wide Gamut / Intermediate workflows. It combines photometric stop-based exposure, Linear or C² S-Curve pivoted contrast, and independent shadow/highlight curve sculpting around a user-definable Mid Point, with guaranteed C² continuity at the pivot and unclipped sub-zero and HDR continuity.
Key Features
Photometric DI Exposure
Converts DaVinci Intermediate to linear light, scales by 2^EV, and encodes cleanly back to DI so global exposure behaves like true camera/stop exposure without shifting contrast geometry.
Pivoted Linear & C² S-Curve Contrast
Apply symmetrical contrast around your chosen Mid Point using either a linear slope (Linear) or a C²-continuous S-Curve (S-Curve), with neutral 0.0 defaults so grades remain clean until dialed in.
Dynamic Mid Point Pivot
Decouples tonal adjustments by pivoting around a user-definable exposure threshold (0–100 IRE) rather than a fixed middle grey, letting you stretch or compress shadows and highlights independently.
C² Monotonic Toe & Shoulder Curves
Uses a unified C²-pivoted quintic-bump curve (f(u) = u + s·u(1 - u)³ and its exact Newton inverse) so shadows and highlights meet smoothly at Mid Point (y' = 1, y'' = 0), reach all the way to Black and White points without pinching flat, and stay strictly monotonic across every slider setting.
Chromaticity-Preserving Luma Scaling & Luma Only Mode Applies tonal changes via multiplicative luma ratio to preserve color ratios, or enable Luma Only - Y Channel to restrict adjustments strictly to Rec.709 luminance.
Live Mid Selection & Transfer Curve Visualizer Enable Show Mid Selection to highlight exact pivot pixels on frame, or toggle Show Curves to monitor the live transfer curve directly over your image.
1. Core Concept 💡
Unlike standard contrast tools that force a fixed middle grey pivot (0.18 linear or 50 IRE), RH Contrast Shaper lets you place the Mid Point anchor anywhere along the tonal scale:
- Shadows Curve operates on everything below the Mid Point (
0 IREup toMid Point). - Highlights Curve operates on everything above the Mid Point (
Mid Pointup to100+ IRE). - Exposure and Contrast cleanly adjust the image around that same pivot workflow.
2. Exposure & Contrast Controls 🌐
Mid Point ⚖️
Sets the pivot threshold (0–100 IRE, default 50.0) separating Shadows and Highlights.
Exposure ☀️
- Range:
-4.0 to +4.0 EV(default0.0) - Photometric linear-light exposure offset (
DI → Linear → × 2^EV → DI).
Contrast ◐ & Contrast Curve 📊
- Contrast Range:
-1.0 to +1.0(default0.0) - Contrast Curve Modes:
Linear— clean straight-slope contrast pivoted aroundMid Point.S-Curve— smooth C²-continuous S-curve compression/expansion anchored toMid Point.
Shadows Curve 📉 & Highlights Curve 📈
- Shadows Range:
-100.0 to +100.0(default0.0) - Highlights Range:
-100.0 to +200.0(default0.0) - Negative values deepen/compress toward the Black Point or flatten highlights smoothly; positive values lift/expand cleanly without dead zones or hard clipping.
3. Levels & Mode Toggles 🎛️
| Control | Range / Type | Default | Action |
|---|---|---|---|
| Black Point ◾ | -50.0 to +50.0 | 0.0 | Shifts the 0 IRE floor target continuously (no hard black clip). |
| White Point ◽ | -50.0 to +50.0 | 0.0 | Shifts the 100 IRE ceiling target smoothly with continuous HDR headroom. |
4. Visual Aids 👁️
Show Mid Selection 🎯
Highlights pixels sitting right at your selected Mid Point in bright green so you can anchor contrast directly onto skin tones, foliage, or backdrop luminance.
Show Curves 📊
Overlays a live transfer-function plot across 0–100 IRE showing the exact curve response after Exposure, Contrast, Shadow/Highlight sculpting, and Black/White point scaling.
5. Under the Hood — Continuity & Math 🔬
- C² Pivot Guarantee: Shadows (
[Black, Mid]) and Highlights ([Mid, White]) match both first (y' = 1) and second (y'' = 0) derivatives atMid Point, eliminating hard inflection kinks even under extreme asymmetric bends. - Unclipped Sub-Zero & HDR: Negative wide-gamut values (
< 0) and bright HDR speculars (> 1.0) extend cleanly with C¹-matched slopes and analytical zero-luma ratio guards (1 + s(1 - u)³) instead of dividing near zero.
6. Node Placement 🗂️
- Working Space: Scene-referred DaVinci Wide Gamut / Intermediate (DWG/DI).
- Recommended Placement: Early-to-mid node graph after initial white balance and exposure prep, before creative film print LUTs or DRTs.