{
  "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": 29.2,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 508,
    "keypoints_staged": 1466,
    "matches": 83,
    "affine_anisotropy": 0.0094,
    "inliers": 45,
    "inlier_ratio": 0.542,
    "median_residual_px": 0.74,
    "matrix_staged_to_original_work": [
      [
        1.00252,
        0.0012,
        -0.32946
      ],
      [
        -0.0012,
        1.00252,
        1.61436
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 0.9975,
    "shift_px": [
      1.8,
      2.5
    ],
    "shift_pct": [
      0.14,
      0.26
    ],
    "rotation_deg": -0.069,
    "visible_overlap_pct": 99.82,
    "invented_area_pct": 0.41,
    "original_px_lost": {
      "left": 0.7,
      "right": 0.0,
      "top": 2.0,
      "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.8172,
      "line_displaced_frac": 0.1582,
      "line_missing_frac": 0.0246,
      "structural_line_pixels": 21679
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.6838,
    "line_recall": 0.7524,
    "line_displaced_frac": 0.157,
    "line_missing_frac": 0.0906,
    "structural_line_pixels": 6479,
    "evaluated_area_frac": 0.644,
    "drift_score": 28.2,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.991,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 28.2,
  "structure": {
    "edge_ssim": 0.6862,
    "line_recall": 0.7301,
    "line_displaced_frac": 0.1841,
    "line_missing_frac": 0.0858,
    "structural_line_pixels": 6480,
    "evaluated_area_frac": 0.65,
    "drift_score": 29.2,
    "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/immostage/10.jpg"
  }
}