# Transmittance Domain: Pre-Log Optical Response & Device Basis
In negative film digitization, the physical quantity recorded by an area-array CMOS sensor or a linear CCD scanner is not optical density. Rather, the sensor integrates the radiant photon flux that traverses the developed photographic emulsion and reaches each photosite. The transmittance domain refers explicitly to the linear-light space prior to logarithmic transformation, where measurements remain strictly proportional to incident physical irradiance. The objective of this domain is to obtain a physically meaningful, bounded, positive relative transmittance vector.
Let represent the spectral radiant power incident across the scanning gate without film, let denote the transmitted flux through the developed negative, and let quantify the combined contributions of sensor thermal dark current and internal optical flare within the scanning chamber. The spectral relative transmittance is defined as:
For a discrete trichromatic imaging system, channel responses correspond to integrals of the transmitted spectrum weighted by color filter array transmissions and sensor quantum efficiencies. Denoting the raw digitized device vector as , all operations performed within the transmittance domain must preserve radiant linearity:
- Dark Level and Stray Light Subtraction: Removing thermal dark current and internal housing reflections ensures that zero transmitted light yields a true physical zero reading.
- Flat-Field Gain Normalization: Compensating for lens cosine-fourth illumination falloff and backlight spatial chromaticity nonuniformity across the field of view.
- Capture Separation Matrix: Decoupling the overlapping spectral bands of camera Bayer dyes or scanner beam splitters, aligning the channels with the actual optical absorption bands of the cyan, magenta, and yellow film dyes.
If channel separation is omitted at the capture stage, dye absorption signals remain entangled throughout all downstream operations. To prevent mathematical singularities during logarithmic mapping, the evaluated transmittance is clamped to a tiny positive threshold :
Values within the transmittance domain represent radiometric physical quantities. Any display-referred nonlinearities, monitor gamma curves, or perceptual contrast adjustments are strictly prohibited within this initial stage.
# Optical Density Domain: Post-Log Additive Absorption & Base Subtraction
Following logarithmic transformation, the signal transitions from the transmittance domain into the optical density domain. Under the Beer-Lambert absorption law, the attenuation of monochromatic light traversing a homogeneous absorbing medium follows an exponential decay. Evaluating the negative base-10 logarithm transforms multiplicative transmission attenuation into linear additive absorbance, establishing a tractable framework for dye layer decomposition.
The raw acquired optical density vector is defined as the common logarithm of the reciprocal of valid relative transmittance:
In chromogenic color negatives processed under standard C-41 chemistry, the unexposed film rebates contain residual unreacted color couplers forming an orange cast. This unexposed substrate introduces a substantial constant additive baseline. Designating the measured unexposed film base density under identical scanning conditions as , the net optical density is obtained through channel-wise subtraction:
Within the net optical density space, the developed dye mass exhibits a predictable inverse relationship with original scene exposure. Provided the photographic emulsion operates between the toe underexposure threshold and the shoulder saturation plateau, net density adheres closely to the classic Hurter-Driffield sensitometric formulation:
where denotes the photographic development contrast factor for dye layer . Within this optical density domain, essential darkroom operations reduce to elementary linear algebra:
| Density Operation | Physical Analog & Darkroom Practice | Governing Mathematical Formulation |
|---|---|---|
| Film Base Subtraction | Eliminating polyester support and unexposed orange coupler absorption | |
| Printer Lights Grading | Emulating red, green, and blue additive/subtractive optical enlarger head filtration | |
| Density Window Normalization | Mapping scene negative density span to target display luminance bounds | |
| Spectral Crosstalk Decoupling | Correcting magenta secondary absorption in high-density regions |
# Positive Print & Output Domain: Linear ProPhoto to Display Rendering
Even after film base subtraction and printer lights balance, the net density vector represents an analytical measurement of physical absorption rather than a displayable positive image. The positive print and output domain is responsible for mapping inverted relative exposures into a standardized, colorimetrically defined linear workspace, followed by aesthetic tone reproduction and display-referred encoding.
The NexFilm Engine utilizes Linear ProPhoto RGB (ROMM RGB with an identity linear transfer function) as its universal internal positive working space. Once inverted relative exposures are placed within this wide-gamut linear framework, subsequent grading and mastering proceed systematically:
- Working Space Linearization: Converting normalized logarithmic density into linear positive exposure , restoring radiant proportionality to the positive scene estimate.
- Per-Channel and Master Tone Curves: Applying discrete red, green, and blue tone curves to shape shadow and highlight color balance, followed by a composite luminance curve modeling traditional print paper D-log-H characteristics.
- Print Film Emulation 3D LUTs: Evaluating verified three-dimensional lookup tables calibrated against motion picture print stocks (such as Kodak 2383 or Vision Premier 2393), conferring characteristic deep shadow d-max and rich dye separation.
- Target Color Space Transform & OETF Encoding: Projecting positive color coordinates into target output profiles (sRGB, Display P3, Adobe RGB, or ACEScg) and applying corresponding optical-electro transfer functions.
Contrast adjustments, shadow recovery, and saturation balancing conducted in the positive print domain reflect perceptual aesthetics. Under no circumstances should these display-referred transforms be allowed to perturb optical density measurements.
# Non-Commutative Matrix Proof: The Invalidation of Density Color Space Transforms
A widespread architectural defect in legacy film inversion software is the confusion between transmittance-domain matrices and density-domain matrices. Several heuristic implementations attempt to apply standard monitor color space matrices directly to logarithmic density vectors, asserting that this approximates optical calibration. This section presents a formal proof demonstrating why such operations are mathematically invalid.
Let represent a strictly positive trichromatic transmittance vector. Let denote an optical sensor channel separation matrix with coefficients .
In the physical transmittance domain, matrix acts as a linear operator over radiant flux, decoupling optical channel crosstalk:
Mapping this physically corrected transmittance vector into the optical density domain yields the true density vector:
Now consider the flawed implementation that applies matrix after the logarithmic transformation, multiplying raw densities by :
For to hold identically across all valid inputs , the arguments of the logarithms must satisfy:
Taking the partial derivative of both sides with respect to arbitrary component :
The partial derivative of the left-hand summation evaluates to a constant:
The partial derivative of the right-hand product yields:
Equating these partial derivatives across all requires that matrix degrade strictly to the identity matrix or a purely diagonal scaling matrix. Whenever matrix incorporates off-diagonal cross-coupling terms (where for ), this identity collapses:
Conclusion: Physical radiant flux sums linearly before the logarithm, whereas dye optical absorbance sums algebraically after the logarithm. Attempting to apply a standard chromaticity matrix in the density domain fails to decouple capture hardware variations and introduces severe chromatic distortion across highlight roll-offs and deep shadow transitions.
# Signal Flow Diagram & Concrete Technical Boundaries
To assist engineers and technical colorists in tracing data flow throughout the codebase, the diagram below outlines the NexFilm v1.1.0 signal pipeline across all three mathematical domains:
NexFilm v1.1.0 maintains an explicit, verifiable boundary regarding implemented capabilities versus ongoing research:
- Implemented Capabilities: Strict mathematical isolation of the three operational domains; dark frame subtraction and open-gate flat-field relative transmittance normalization; transmission target patch fitting with SVD condition number safety guards; bounded channel span response for cross-platform color stability; and 16-bit linear mastering alongside CFA camera RAW DNG encapsulation.
- Current Technical Boundaries: The v1.1.0 release does not incorporate an optical Status M spectral integration library, and historical matrix estimates are retained solely for legacy backward compatibility; furthermore, batch-specific nonlinear photographic H-D emulsion curves are not inverted. Inversion relies entirely on verifiable relative transmittance and rigorous logarithmic density algebra.