I-248Optical Transfer Function Analysis

Sensor Forensicsimage2009

Estimates the optical transfer function (OTF/MTF) to verify lens authenticity — AI images lack consistent OTF signatures.

OTF/MTF Estimation
This method estimates the Optical Transfer Function (OTF) and its modulus, the Modulation Transfer Function (MTF), to verify consistency with real camera optics:1. Edge-Based MTF Estimation: The method detects slanted edges in the image using Canny edge detection and selects edges with sufficient length (> 50 pixels) and contrast. For each selected edge, the Edge Spread Function (ESF) is measured by projecting pixel intensities perpendicular to the edge. The Line Spread Function (LSF) is computed as the derivative of the ESF, and the MTF is obtained as the magnitude of the Fourier transform of the LSF: MTF(f) = |FFT(LSF)|. This follows the ISO 12233 slanted-edge method.2. Spatially Variant OTF Mapping: The MTF is estimated at multiple locations across the image field. In a real lens, the MTF varies systematically with field position: center performance is best, degrading toward edges and corners due to optical aberrations (field curvature, astigmatism, coma). The method creates a spatial MTF map by computing MTF50 (frequency where MTF drops to 50%) at each edge location. Authentic photographs show a smooth, radially symmetric MTF degradation pattern consistent with the lens design.3. Aberration Signature Analysis: The full OTF (including phase) is estimated from the complex Fourier transform of the LSF. The Phase Transfer Function (PTF) reveals asymmetric aberrations such as coma and lateral chromatic aberration. For each color channel (R,G,B), the OTF is computed separately. Real lenses show wavelength-dependent OTF differences due to chromatic aberration: shorter wavelengths (blue) have lower MTF50 and larger PTF shifts than longer wavelengths.4. Consistency Verification for Forensics: In AI-generated images, the OTF/MTF is either globally uniform (no field-dependent degradation), artificially applied as a post-processing blur, or inconsistent with any real lens design. The method compares the estimated MTF field map against a database of MTF profiles from known lenses. Inconsistencies — such as an MTF pattern that doesn't match any real lens, or regions with different OTF characteristics within the same image — indicate synthesis or manipulation.
Edge detection: Canny with hysteresis thresholding
Minimum edge length: 50 pixels

ESF sampling: sub-pixel (4× oversampling)

MTF metric: MTF50 (frequency at 50% modulation)

Field positions: 9-point grid (center, edges, corners)

Chromatic channels: R, G, B separately

Minimum image size: 512×512 pixels
83–90% for detecting AI-generated images lacking consistent OTF. MTF field consistency check achieves 88% precision for manipulation detection. Chromatic OTF analysis adds 4–6% accuracy improvement. Lens identification from MTF profile achieves 79% accuracy against a database of 200+ lenses. Performance requires sufficient edges for estimation.
• OTF/MTF is a fundamental property of optical systems — provides strong authentication
• Follows standardized ISO 12233 methodology for reproducible measurements

• Chromatic OTF analysis captures wavelength-dependent aberration signatures

• Spatial MTF mapping reveals field-dependent optical behavior unique to each lens

• Non-destructive analysis using naturally occurring edges in the image
• Requires sufficient sharp edges in the image — not applicable to uniformly textured scenes
• Post-processing sharpening (unsharp mask) alters the apparent MTF

• Computationally expensive at high resolution due to per-edge FFT computation

• Software lens corrections (DxO, Lightroom) flatten the MTF field, removing natural variation

• AI-generated images with learned depth-of-field may partially mimic lens OTF profiles
Verifying that image sharpness profile is consistent with real camera optics. Detecting AI-generated images lacking physical depth-of-field and aberration patterns. Identifying lens type from the spatial MTF profile. Detecting composited images where different regions have different OTF characteristics.