{
  "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": 28.7,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 508,
    "keypoints_staged": 1216,
    "matches": 166,
    "affine_anisotropy": 0.0039,
    "inliers": 134,
    "inlier_ratio": 0.807,
    "median_residual_px": 0.68,
    "matrix_staged_to_original_work": [
      [
        0.99777,
        -0.00058,
        1.38574
      ],
      [
        0.00058,
        0.99777,
        -0.47851
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0022,
    "shift_px": [
      0.0,
      1.2
    ],
    "shift_pct": [
      0.0,
      0.12
    ],
    "rotation_deg": 0.033,
    "visible_overlap_pct": 99.9,
    "invented_area_pct": 0.13,
    "original_px_lost": {
      "left": 1.7,
      "right": 1.7,
      "top": 0.1,
      "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.8966,
      "line_displaced_frac": 0.075,
      "line_missing_frac": 0.0285,
      "structural_line_pixels": 21396
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.7459,
    "line_recall": 0.8001,
    "line_displaced_frac": 0.0776,
    "line_missing_frac": 0.1223,
    "structural_line_pixels": 5943,
    "evaluated_area_frac": 0.643,
    "drift_score": 22.7,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.99,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 22.7,
  "structure": {
    "edge_ssim": 0.7412,
    "line_recall": 0.6856,
    "line_displaced_frac": 0.1028,
    "line_missing_frac": 0.2116,
    "structural_line_pixels": 6480,
    "evaluated_area_frac": 0.65,
    "drift_score": 28.7,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": null,
  "seconds_approx": true,
  "files": {
    "original": "photos/10-open-plan-with-clutter.jpg",
    "staged": "results/reimaginehome/10.jpg"
  }
}