{
  "original": {
    "width": 1920,
    "height": 926,
    "megapixels": 1.78
  },
  "staged": {
    "width": 912,
    "height": 441,
    "megapixels": 0.4
  },
  "aspect_ratio": {
    "original": 2.0734,
    "staged": 2.068,
    "deviation": 0.0026,
    "pass": true
  },
  "resolution_kept": false,
  "resolution_ratio": 0.226,
  "raw_drift_score": 5.7,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 164,
    "keypoints_staged": 244,
    "matches": 87,
    "affine_anisotropy": 0.0016,
    "inliers": 70,
    "inlier_ratio": 0.805,
    "median_residual_px": 0.54,
    "matrix_staged_to_original_work": [
      [
        1.00005,
        0.00014,
        -0.01496
      ],
      [
        -0.00014,
        1.00005,
        0.18284
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 0.9999,
    "shift_px": [
      0.1,
      1.2
    ],
    "shift_pct": [
      0.0,
      0.13
    ],
    "rotation_deg": -0.008,
    "visible_overlap_pct": 100.0,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 0.1,
      "right": 0.0,
      "top": 0.3,
      "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.994,
      "line_displaced_frac": 0.006,
      "line_missing_frac": 0.0,
      "structural_line_pixels": 19588
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.92,
    "line_recall": 0.952,
    "line_displaced_frac": 0.0436,
    "line_missing_frac": 0.0044,
    "structural_line_pixels": 9629,
    "evaluated_area_frac": 0.65,
    "drift_score": 6.4,
    "aligned": true,
    "evaluated_area_frac_of_mask": 1.0,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 6.4,
  "structure": {
    "edge_ssim": 0.9336,
    "line_recall": 0.9518,
    "line_displaced_frac": 0.0425,
    "line_missing_frac": 0.0057,
    "structural_line_pixels": 9633,
    "evaluated_area_frac": 0.65,
    "drift_score": 5.7,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": null,
  "seconds_approx": true,
  "files": {
    "original": "photos/04-attic-odd-windows.jpg",
    "staged": "results/sofabrain/04.jpg"
  }
}