{
  "original": {
    "width": 1920,
    "height": 1295,
    "megapixels": 2.49
  },
  "staged": {
    "width": 758,
    "height": 512,
    "megapixels": 0.39
  },
  "aspect_ratio": {
    "original": 1.4826,
    "staged": 1.4805,
    "deviation": 0.0015,
    "pass": true
  },
  "resolution_kept": false,
  "resolution_ratio": 0.156,
  "raw_drift_score": 10.6,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 1016,
    "keypoints_staged": 1581,
    "matches": 359,
    "affine_anisotropy": 0.0038,
    "inliers": 316,
    "inlier_ratio": 0.88,
    "median_residual_px": 0.52,
    "matrix_staged_to_original_work": [
      [
        1.00134,
        0.00087,
        -0.45774
      ],
      [
        -0.00087,
        1.00134,
        0.04461
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 0.9987,
    "shift_px": [
      1.0,
      1.1
    ],
    "shift_pct": [
      0.05,
      0.08
    ],
    "rotation_deg": -0.05,
    "visible_overlap_pct": 100.0,
    "invented_area_pct": 0.19,
    "original_px_lost": {
      "left": 0.3,
      "right": 0.0,
      "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.9914,
      "line_displaced_frac": 0.0083,
      "line_missing_frac": 0.0003,
      "structural_line_pixels": 77983
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.8914,
    "line_recall": 0.915,
    "line_displaced_frac": 0.084,
    "line_missing_frac": 0.001,
    "structural_line_pixels": 35016,
    "evaluated_area_frac": 0.65,
    "drift_score": 9.7,
    "aligned": true,
    "evaluated_area_frac_of_mask": 1.0,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 9.7,
  "structure": {
    "edge_ssim": 0.8923,
    "line_recall": 0.8953,
    "line_displaced_frac": 0.1025,
    "line_missing_frac": 0.0022,
    "structural_line_pixels": 35029,
    "evaluated_area_frac": 0.65,
    "drift_score": 10.6,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": null,
  "seconds_approx": true,
  "files": {
    "original": "photos/07-living-large-window.jpg",
    "staged": "results/sofabrain/07.jpg"
  }
}