{
  "original": {
    "width": 1920,
    "height": 1484,
    "megapixels": 2.85
  },
  "staged": {
    "width": 1426,
    "height": 1103,
    "megapixels": 1.57
  },
  "aspect_ratio": {
    "original": 1.2938,
    "staged": 1.2928,
    "deviation": 0.0007,
    "pass": true
  },
  "resolution_kept": false,
  "resolution_ratio": 0.552,
  "raw_drift_score": 38.1,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 550,
    "keypoints_staged": 2139,
    "matches": 178,
    "affine_anisotropy": 0.0003,
    "inliers": 138,
    "inlier_ratio": 0.775,
    "median_residual_px": 0.58,
    "matrix_staged_to_original_work": [
      [
        0.99881,
        -0.00018,
        0.80556
      ],
      [
        0.00018,
        0.99881,
        0.62346
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0012,
    "shift_px": [
      0.2,
      1.4
    ],
    "shift_pct": [
      0.01,
      0.09
    ],
    "rotation_deg": 0.01,
    "visible_overlap_pct": 99.78,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 1.5,
      "right": 1.0,
      "top": 1.5,
      "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.9696,
      "line_displaced_frac": 0.0288,
      "line_missing_frac": 0.0016,
      "structural_line_pixels": 78323
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.6861,
    "line_recall": 0.5531,
    "line_displaced_frac": 0.1629,
    "line_missing_frac": 0.2839,
    "structural_line_pixels": 21434,
    "evaluated_area_frac": 0.64,
    "drift_score": 38.0,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.985,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 38.0,
  "structure": {
    "edge_ssim": 0.6918,
    "line_recall": 0.5455,
    "line_displaced_frac": 0.1886,
    "line_missing_frac": 0.266,
    "structural_line_pixels": 21349,
    "evaluated_area_frac": 0.65,
    "drift_score": 38.1,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": null,
  "seconds_approx": true,
  "files": {
    "original": "photos/05-bay-window-fireplace.jpg",
    "staged": "results/immostage/05.jpg"
  }
}