{
  "original": {
    "width": 1280,
    "height": 960,
    "megapixels": 1.23
  },
  "staged": {
    "width": 1248,
    "height": 832,
    "megapixels": 1.04
  },
  "aspect_ratio": {
    "original": 1.3333,
    "staged": 1.5,
    "deviation": 0.125,
    "pass": false
  },
  "resolution_kept": false,
  "resolution_ratio": 0.845,
  "raw_drift_score": 24.1,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 276,
    "keypoints_staged": 1270,
    "matches": 145,
    "affine_anisotropy": 0.0007,
    "inliers": 113,
    "inlier_ratio": 0.779,
    "median_residual_px": 0.23,
    "matrix_staged_to_original_work": [
      [
        1.00001,
        1e-05,
        0.0057
      ],
      [
        -1e-05,
        1.00001,
        43.06714
      ]
    ]
  },
  "framing": {
    "pass": false,
    "result": "fail: only 89.1% of the original frame visible",
    "zoom": 1.0,
    "shift_px": [
      0.0,
      0.7
    ],
    "shift_pct": [
      0.0,
      0.07
    ],
    "rotation_deg": -0.0,
    "visible_overlap_pct": 89.06,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 0.0,
      "right": 0.0,
      "top": 53.8,
      "bottom": 52.4
    },
    "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.9629,
      "line_displaced_frac": 0.0253,
      "line_missing_frac": 0.0118,
      "structural_line_pixels": 23314
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.8228,
    "line_recall": 0.8154,
    "line_displaced_frac": 0.0711,
    "line_missing_frac": 0.1136,
    "structural_line_pixels": 6235,
    "evaluated_area_frac": 0.589,
    "drift_score": 18.1,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.906,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 18.1,
  "structure": {
    "edge_ssim": 0.7823,
    "line_recall": 0.7361,
    "line_displaced_frac": 0.1733,
    "line_missing_frac": 0.0905,
    "structural_line_pixels": 6242,
    "evaluated_area_frac": 0.65,
    "drift_score": 24.1,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": 30,
  "seconds_approx": true,
  "files": {
    "original": "photos/01-open-plan-kitchen-living.jpg",
    "staged": "results/tinty/01.jpg"
  }
}