Chapter 15 Use Cases and Reference Implementations


One-Sentence Goal
Provide executable blueprints for three representative scenarios—offline batch, online real-time service, and event/ToF fusion—covering the full loop from acquisition → modeling → calibration → imaging → QC → release, with binding to P/S/M/I, SLI.img.*, and SLO.*.


I. Scope & Targets

  1. Inputs
    • Raw or linearized data y_raw or y_lin, multi-modality sequences Y = { y_k }, and device/mode descriptors Device, Mode (Chapter 3).
    • Calibration & QC fixtures: flat/dark frames, color charts, geometric boards, slanted-edge targets, point/line sources.
    • Metadata & reference conditions: RefCond, unit(x), dim(x), ts, tau_mono, offset/skew/J, gamma(ell).
  2. Outputs
    Published imaging artifacts D_img.clean, quality panel SLI.img.*, compliance report and signatures manifest.imaging.*, and audit_report.
  3. Constraints
    • Evaluate metrics and perform calibration in the linear radiometric domain (Chapter 4).
    • Compute arrival time using both forms (Methods.Cleaning v1.0, Ch. 6).

II. Terms & Variables


III. Axioms P215- (Scenario Baseline)*


IV. Minimal Equations S215-*


V. Use Case 1: Offline Batch Pipeline (Multispectral Camera) — M150-1

  1. Device/mode binding: register Device=MSI, Mode={ bandset, exposure, gain }; load response curves and bandpass (Chapter 3).
  2. Linearization & radiometry: invert response, black/gain correction; validate unit, dim (Chapter 4).
  3. Optics & resolution: compute MTF(f) via slanted-edge or point-source; derive MTF50, MTF_area (Chapter 5).
  4. Sampling & reconstruction: mosaic/multi-resolution reconstruction of y_lin; cross-scale interpolation if needed (Chapter 6).
  5. Noise modeling & denoising: estimate sigma_read, k_shot, NPS(f); choose structure-preserving denoisers (Chapter 7).
  6. Flat/dark & FPN: build PRNU, DSNU, pixel health map; mask bad pixels (Chapter 8).
  7. Geometry & registration: calibrate H and correct distortion; report err_geo (Chapter 9).
  8. Color management: map multispectral to target color space; evaluate DeltaE_00.P95 (Chapter 10).
  9. Computational imaging: deconvolution or SR for low-contrast/defocused samples (Chapter 12).
  10. QC & freeze: aggregate SLI.img.*; judge against SLO.*; emit manifest.imaging.batch and audit_report.

VI. Use Case 2: Online Real-Time Imaging Service (Mobile/Edge) — M150-2

  1. Streaming graph: on G=(V,E), build nodes ingest → linearize → denoise → demosaic → color → geometry → hdr → qc → publish (Methods.Cleaning v1.0, Ch. 11).
  2. Time-base alignment: align on tau_mono; record offset/skew/J; bind windowed metrics to frame ts.
  3. Low-latency design: single-pass imaging + QC; target T_proc.P99 ≤ 33 ms, rho ≤ rho_max.
  4. Online QC: over sliding Delta_t, track SLI.img.mtf50.P95, SLI.img.deltaE00.P95, SLI.img.nps_band.
  5. Backpressure loop: if W_q exceeds thresholds, downscale or disable expensive branches (SR/deconv); maintain drop_rate ≤ tol_drop.
  6. Compliance & release: check_slo → emit_qc_manifest → freeze_release; divert exceptions to quarantine.
    • Typical SLOs: T_proc.P99 ≤ 33 ms; drop_rate ≤ 1%; SLI.img.mtf50.P95 ≥ 0.30 * f_Nyq; SLI.img.deltaE00.P95 ≤ 4.0.
    • Deliverables: runtime telemetry SLI.svc.* and SLI.img.*, plus manifest.imaging.realtime.

VII. Use Case 3: Event Camera + ToF Fusion (Time/Path Gating) — M150-3


VIII. Scenario-Specific Contracts & Assertions


IX. Reference Binding I150-*

  1. Build & run
    • build_offline_pipeline(cfg) -> pipe
    • run_offline_batch(pipe, inputs) -> { D_img.clean, SLI, manifest, audit_report }
    • build_realtime_graph(topology, policy) -> G
    • run_realtime(G, stream) -> telemetry(SLI.svc.*, SLI.img.*)
  2. Reusable operators (referencing earlier I*-*)
    • linearize_and_calibrate(y_raw, RefCond) -> y_lin (Chapter 4)
    • measure_mtf_slanted_edge(img, roi) -> { MTF(f), f50, area } (Chapter 5)
    • estimate_noise_psd(seq, roi) -> { NPS(f), sigma_read, k_shot, NPS_band } (Chapter 7)
    • compute_prnu_dsnu(flats, darks) -> { PRNU, DSNU, map_prnu, map_dsnu, dead_pixel_rate } (Chapter 8)
    • calibrate_geometry(pattern_imgs) -> { H, err_geo } (Chapter 9)
    • evaluate_color(chart_raw, illum, profile) -> { DeltaE00_stats, wb_error } (Chapter 10)
    • hdr_exposure_fusion(frames, weights) -> y_hdr (Chapter 11)
    • deconv_or_superres(img, psf, method) -> img' (Chapter 12)
    • gate_by_tof(E(t), D(t), t0, Δt) -> A_path(E) (Chapter 13)
    • arrival_time_consistency(gamma, n_eff, c_ref) -> { T_arr_const, T_arr_general, delta_form } (Methods.Cleaning v1.0, Ch. 6)
    • aggregate_sli(metrics) -> SLI_dict ; check_slo(sli, policy) -> { pass, violations[] } (Chapter 14)
    • freeze_release(artifacts, tag) -> manifest (Methods.Cleaning v1.0, Ch. 10)

X. Cross-References


XI. Quality Metrics & Risk Control (Scenario Coupling)


Summary
This chapter delivers three actionable blueprints—with P/S/M/I bindings—for a closed loop from device to publication. Thresholds and policies come from policy cards and SLO configs and are tunable by scenario. All outputs are auditable, traceable, and repeatable.