Chapter 6 Sampling, Reconstruction, and Interpolation (Including Bayer / Multi-Resolution)


One-Sentence Goal
Start from the sampling theorem to unify CFA mosaics, reconstruction/interpolation, and multi-resolution pyramids; publish auditable kernels, frequency budgets, and aliasing measures; and ensure imaging consistency across scales and pixel structures.


I. Scope & Targets

  1. Inputs
    • From Chapter 3 (device & mode binding): pixel_pitch, CFA(pattern,map), binning_mode, mode_axes.
    • From Chapter 4 (radiometric harmonization): I_lin or I_corr (linear domain).
    • From Chapter 5 (transfer priors): MTF_pixel, MTF_sys, stab_trace (for motion-aware resampling).
  2. Outputs
    • Demosaiced I_rgb or multispectral I_channels; resampled image I_rescaled; pyramid { MIP_0..L }.
    • Kernels & frequency budgets: k_interp, h_lp, H_rec, alias_ratio, kernel_id.
    • Contracts & manifest: assert_report.sampling, manifest.imaging.sampling.
  3. Boundaries
    Spatially linear, time-invariant kernels are assumed. Adaptive/learning-based reconstructions must be captured as an equivalent kernel and effective MTF_proc at registration.

II. Terms & Variables

  1. Grids & sampling
    • Source grid G_src = { (n * Δx, m * Δy) }, target grid G_tgt.
    • Nyquist: f_Nx = 1 / ( 2 * Δx ), f_Ny = 1 / ( 2 * Δy ).
  2. CFA & masks
    • CFA(x,y) ∈ {R,G,B} or extended { c_1..c_K }; binary mask M_c(x,y) ∈ {0,1}.
    • Mosaic image: I_mos(x,y) = ∑_c M_c(x,y) * I_c(x,y).
  3. Kernels & filters
    • Interpolation kernel k_interp(x) (1-D, separable to 2-D), low-pass h_lp(x), frequency response H(f).
    • Common kernels: nearest, bilinear, bicubic(a), Lanczos(a).
  4. Operators
    • Convolution *, downsampling down_K, upsampling up_K.
    • Pyramid levels level = 0..L, with example scale scale(level) = 2^level.

III. Axioms P206- (Sampling & Reconstruction)*


IV. Minimal Equations S206-*


V. Sampling & Reconstruction Process M60-*


VI. Contracts & Assertions


VII. Implementation Bindings I60-*


VIII. Cross-References


IX. Quality Metrics & Risk Control

  1. Key indicators
    alias_ratio_luma, alias_ratio_chroma, zipper_score, false_color_ratio, MTF_proc, u(alias_ratio).
  2. Risk handling
    • Aliasing above limits: tighten h_lp cutoff or use higher-order kernels; if needed, increase target pixel scale or publish a downsampled version.
    • Visible false color: strengthen cross-channel constraints or enable direction-adaptive de-artifacting; down-rank q_score and record TraceID.
    • Pyramid non-closure: verify up/down energy and offset pairings; roll back to the last freeze_release kernel configuration.

Summary
This chapter aligns the pipeline CFA → demosaic → anti-alias → resample → multi-resolution pyramid, standardizing kernel expressions and frequency budgets under a contract loop. Assertions such as alias_ratio, kernel_energy, and mtf_compose guarantee reconstruction consistency and auditability across Bayer and multi-resolution scenarios.