{
  "original": {
    "width": 1280,
    "height": 960,
    "megapixels": 1.23
  },
  "staged": {
    "width": 1195,
    "height": 896,
    "megapixels": 1.07
  },
  "aspect_ratio": {
    "original": 1.3333,
    "staged": 1.3337,
    "deviation": 0.0003,
    "pass": true
  },
  "resolution_kept": false,
  "resolution_ratio": 0.871,
  "raw_drift_score": 26.1,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 577,
    "keypoints_staged": 798,
    "matches": 46,
    "affine_anisotropy": 0.0019,
    "inliers": 27,
    "inlier_ratio": 0.587,
    "median_residual_px": 1.09,
    "matrix_staged_to_original_work": [
      [
        0.99413,
        0.00689,
        0.23366
      ],
      [
        -0.00689,
        0.99413,
        3.66896
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0059,
    "shift_px": [
      -0.2,
      -2.6
    ],
    "shift_pct": [
      -0.01,
      -0.28
    ],
    "rotation_deg": -0.397,
    "visible_overlap_pct": 98.91,
    "invented_area_pct": 0.08,
    "original_px_lost": {
      "left": 6.9,
      "right": 7.2,
      "top": 4.6,
      "bottom": 9.9
    },
    "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.8153,
      "line_displaced_frac": 0.123,
      "line_missing_frac": 0.0617,
      "structural_line_pixels": 21325
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.7591,
    "line_recall": 0.7591,
    "line_displaced_frac": 0.1228,
    "line_missing_frac": 0.1181,
    "structural_line_pixels": 5816,
    "evaluated_area_frac": 0.637,
    "drift_score": 24.1,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.981,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 24.1,
  "structure": {
    "edge_ssim": 0.7611,
    "line_recall": 0.7177,
    "line_displaced_frac": 0.1448,
    "line_missing_frac": 0.1376,
    "structural_line_pixels": 5816,
    "evaluated_area_frac": 0.65,
    "drift_score": 26.1,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": 19.8,
  "seconds_approx": false,
  "files": {
    "original": "photos/02-room-with-doorway.jpg",
    "staged": "results/collov/02.jpg"
  }
}