{
  "original": {
    "width": 1280,
    "height": 960,
    "megapixels": 1.23
  },
  "staged": {
    "width": 2336,
    "height": 1760,
    "megapixels": 4.11
  },
  "aspect_ratio": {
    "original": 1.3333,
    "staged": 1.3273,
    "deviation": 0.0045,
    "pass": true
  },
  "resolution_kept": true,
  "resolution_ratio": 3.346,
  "raw_drift_score": 10.4,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 366,
    "keypoints_staged": 880,
    "matches": 145,
    "affine_anisotropy": 0.0056,
    "inliers": 111,
    "inlier_ratio": 0.766,
    "median_residual_px": 0.71,
    "matrix_staged_to_original_work": [
      [
        0.99576,
        0.00125,
        2.08672
      ],
      [
        -0.00125,
        0.99576,
        1.05365
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0043,
    "shift_px": [
      0.5,
      1.0
    ],
    "shift_pct": [
      0.04,
      0.1
    ],
    "rotation_deg": -0.072,
    "visible_overlap_pct": 99.64,
    "invented_area_pct": 0.06,
    "original_px_lost": {
      "left": 3.8,
      "right": 2.8,
      "top": 1.3,
      "bottom": 0.0
    },
    "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.9315,
      "line_displaced_frac": 0.0521,
      "line_missing_frac": 0.0164,
      "structural_line_pixels": 24790
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.8411,
    "line_recall": 0.9755,
    "line_displaced_frac": 0.0231,
    "line_missing_frac": 0.0014,
    "structural_line_pixels": 9146,
    "evaluated_area_frac": 0.639,
    "drift_score": 9.2,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.984,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 9.2,
  "structure": {
    "edge_ssim": 0.8391,
    "line_recall": 0.9527,
    "line_displaced_frac": 0.0456,
    "line_missing_frac": 0.0017,
    "structural_line_pixels": 9146,
    "evaluated_area_frac": 0.65,
    "drift_score": 10.4,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": 12.5,
  "seconds_approx": true,
  "files": {
    "original": "photos/03-room-passage-desk.jpg",
    "staged": "results/reimaginehome/03.jpg"
  }
}