{
  "original": {
    "width": 1280,
    "height": 960,
    "megapixels": 1.23
  },
  "staged": {
    "width": 1448,
    "height": 1086,
    "megapixels": 1.57
  },
  "aspect_ratio": {
    "original": 1.3333,
    "staged": 1.3333,
    "deviation": 0.0,
    "pass": true
  },
  "resolution_kept": true,
  "resolution_ratio": 1.28,
  "raw_drift_score": 27.0,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 276,
    "keypoints_staged": 727,
    "matches": 100,
    "affine_anisotropy": 0.0007,
    "inliers": 65,
    "inlier_ratio": 0.65,
    "median_residual_px": 0.72,
    "matrix_staged_to_original_work": [
      [
        0.99611,
        -0.00179,
        1.99111
      ],
      [
        0.00179,
        0.99611,
        2.85769
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0039,
    "shift_px": [
      -0.9,
      2.9
    ],
    "shift_pct": [
      -0.07,
      0.3
    ],
    "rotation_deg": 0.103,
    "visible_overlap_pct": 99.19,
    "invented_area_pct": 0.03,
    "original_px_lost": {
      "left": 2.5,
      "right": 4.2,
      "top": 5.9,
      "bottom": 0.2
    },
    "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.8745,
      "line_displaced_frac": 0.0838,
      "line_missing_frac": 0.0417,
      "structural_line_pixels": 20825
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.8482,
    "line_recall": 0.6428,
    "line_displaced_frac": 0.1576,
    "line_missing_frac": 0.1995,
    "structural_line_pixels": 6280,
    "evaluated_area_frac": 0.632,
    "drift_score": 25.4,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.973,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 25.4,
  "structure": {
    "edge_ssim": 0.8393,
    "line_recall": 0.6213,
    "line_displaced_frac": 0.1921,
    "line_missing_frac": 0.1866,
    "structural_line_pixels": 6242,
    "evaluated_area_frac": 0.65,
    "drift_score": 27.0,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": null,
  "seconds_approx": true,
  "files": {
    "original": "photos/01-open-plan-kitchen-living.jpg",
    "staged": "results/immostage/01.jpg"
  }
}