{
  "original": {
    "width": 1920,
    "height": 1295,
    "megapixels": 2.49
  },
  "staged": {
    "width": 2528,
    "height": 1696,
    "megapixels": 4.29
  },
  "aspect_ratio": {
    "original": 1.4826,
    "staged": 1.4906,
    "deviation": 0.0054,
    "pass": true
  },
  "resolution_kept": true,
  "resolution_ratio": 1.724,
  "raw_drift_score": 38.3,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 1016,
    "keypoints_staged": 1543,
    "matches": 205,
    "affine_anisotropy": 0.0003,
    "inliers": 179,
    "inlier_ratio": 0.873,
    "median_residual_px": 0.51,
    "matrix_staged_to_original_work": [
      [
        0.99366,
        -0.00023,
        3.2603
      ],
      [
        0.00023,
        0.99366,
        4.31399
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0064,
    "shift_px": [
      -0.1,
      0.5
    ],
    "shift_pct": [
      -0.01,
      0.04
    ],
    "rotation_deg": 0.013,
    "visible_overlap_pct": 98.43,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 6.1,
      "right": 6.4,
      "top": 8.5,
      "bottom": 7.6
    },
    "criteria": "overlap >= 97%, zoom 0.99-1.02, |rotation| <= 0.5 deg, invented area <= 2%",
    "units": "px of the original image; shift = staged frame centre vs original centre; zoom > 1 = cropped/zoomed in"
  },
  "diagnostics": {
    "sensitive_edges": {
      "line_recall": 0.9913,
      "line_displaced_frac": 0.0087,
      "line_missing_frac": 0.0,
      "structural_line_pixels": 77665
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.6856,
    "line_recall": 0.6094,
    "line_displaced_frac": 0.2219,
    "line_missing_frac": 0.1687,
    "structural_line_pixels": 34994,
    "evaluated_area_frac": 0.629,
    "drift_score": 35.2,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.968,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 35.2,
  "structure": {
    "edge_ssim": 0.6634,
    "line_recall": 0.5697,
    "line_displaced_frac": 0.257,
    "line_missing_frac": 0.1733,
    "structural_line_pixels": 35029,
    "evaluated_area_frac": 0.65,
    "drift_score": 38.3,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": 90,
  "seconds_approx": true,
  "files": {
    "original": "photos/07-living-large-window.jpg",
    "staged": "results/tinty/07.jpg"
  }
}