{
  "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": 22.4,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 366,
    "keypoints_staged": 1016,
    "matches": 80,
    "affine_anisotropy": 0.0017,
    "inliers": 41,
    "inlier_ratio": 0.512,
    "median_residual_px": 0.64,
    "matrix_staged_to_original_work": [
      [
        0.99857,
        0.00021,
        0.48078
      ],
      [
        -0.00021,
        0.99857,
        0.03732
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0014,
    "shift_px": [
      -0.2,
      -0.8
    ],
    "shift_pct": [
      -0.02,
      -0.08
    ],
    "rotation_deg": -0.012,
    "visible_overlap_pct": 99.95,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 0.8,
      "right": 1.2,
      "top": 0.0,
      "bottom": 1.6
    },
    "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.9015,
      "line_displaced_frac": 0.067,
      "line_missing_frac": 0.0315,
      "structural_line_pixels": 24790
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.7408,
    "line_recall": 0.8245,
    "line_displaced_frac": 0.1222,
    "line_missing_frac": 0.0532,
    "structural_line_pixels": 9146,
    "evaluated_area_frac": 0.644,
    "drift_score": 21.7,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.991,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 21.7,
  "structure": {
    "edge_ssim": 0.7434,
    "line_recall": 0.809,
    "line_displaced_frac": 0.1323,
    "line_missing_frac": 0.0587,
    "structural_line_pixels": 9146,
    "evaluated_area_frac": 0.65,
    "drift_score": 22.4,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": 18.6,
  "seconds_approx": false,
  "files": {
    "original": "photos/03-room-passage-desk.jpg",
    "staged": "results/collov/03.jpg"
  }
}