{
  "original": {
    "width": 1920,
    "height": 1484,
    "megapixels": 2.85
  },
  "staged": {
    "width": 2528,
    "height": 1696,
    "megapixels": 4.29
  },
  "aspect_ratio": {
    "original": 1.2938,
    "staged": 1.4906,
    "deviation": 0.1521,
    "pass": false
  },
  "resolution_kept": true,
  "resolution_ratio": 1.505,
  "raw_drift_score": 33.5,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 550,
    "keypoints_staged": 1095,
    "matches": 168,
    "affine_anisotropy": 0.0003,
    "inliers": 137,
    "inlier_ratio": 0.815,
    "median_residual_px": 0.4,
    "matrix_staged_to_original_work": [
      [
        0.99355,
        3e-05,
        3.22393
      ],
      [
        -3e-05,
        0.99355,
        54.33068
      ]
    ]
  },
  "framing": {
    "pass": false,
    "result": "fail: only 86.1% of the original frame visible",
    "zoom": 1.0065,
    "shift_px": [
      -0.1,
      0.2
    ],
    "shift_pct": [
      -0.01,
      0.01
    ],
    "rotation_deg": -0.002,
    "visible_overlap_pct": 86.05,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 6.1,
      "right": 6.3,
      "top": 101.9,
      "bottom": 101.5
    },
    "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.99,
      "line_displaced_frac": 0.0083,
      "line_missing_frac": 0.0017,
      "structural_line_pixels": 76253
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.7628,
    "line_recall": 0.9412,
    "line_displaced_frac": 0.0573,
    "line_missing_frac": 0.0015,
    "structural_line_pixels": 19437,
    "evaluated_area_frac": 0.569,
    "drift_score": 14.8,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.875,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 14.8,
  "structure": {
    "edge_ssim": 0.614,
    "line_recall": 0.7161,
    "line_displaced_frac": 0.1846,
    "line_missing_frac": 0.0993,
    "structural_line_pixels": 21349,
    "evaluated_area_frac": 0.65,
    "drift_score": 33.5,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": 63,
  "seconds_approx": true,
  "files": {
    "original": "photos/05-bay-window-fireplace.jpg",
    "staged": "results/tinty/05.jpg"
  }
}