{
  "original": {
    "width": 1920,
    "height": 1484,
    "megapixels": 2.85
  },
  "staged": {
    "width": 1200,
    "height": 896,
    "megapixels": 1.08
  },
  "aspect_ratio": {
    "original": 1.2938,
    "staged": 1.3393,
    "deviation": 0.0352,
    "pass": false
  },
  "resolution_kept": false,
  "resolution_ratio": 0.377,
  "raw_drift_score": 12.6,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 550,
    "keypoints_staged": 516,
    "matches": 155,
    "affine_anisotropy": 0.0247,
    "inliers": 80,
    "inlier_ratio": 0.516,
    "median_residual_px": 1.15,
    "matrix_staged_to_original_work": [
      [
        1.00648,
        0.00943,
        -5.42162
      ],
      [
        -0.00943,
        1.00648,
        12.47975
      ]
    ]
  },
  "framing": {
    "pass": false,
    "result": "fail: rotated -0.54 deg",
    "zoom": 0.9935,
    "shift_px": [
      2.8,
      -5.4
    ],
    "shift_pct": [
      0.15,
      -0.36
    ],
    "rotation_deg": -0.537,
    "visible_overlap_pct": 97.45,
    "invented_area_pct": 0.6,
    "original_px_lost": {
      "left": 3.4,
      "right": 0.0,
      "top": 23.4,
      "bottom": 34.2
    },
    "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.9064,
      "line_displaced_frac": 0.0859,
      "line_missing_frac": 0.0077,
      "structural_line_pixels": 81692
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.8445,
    "line_recall": 0.7796,
    "line_displaced_frac": 0.1658,
    "line_missing_frac": 0.0546,
    "structural_line_pixels": 20257,
    "evaluated_area_frac": 0.635,
    "drift_score": 18.8,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.977,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 18.8,
  "structure": {
    "edge_ssim": 0.8917,
    "line_recall": 0.8563,
    "line_displaced_frac": 0.0822,
    "line_missing_frac": 0.0615,
    "structural_line_pixels": 21349,
    "evaluated_area_frac": 0.65,
    "drift_score": 12.6,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": 204.0,
  "seconds_approx": true,
  "files": {
    "original": "photos/05-bay-window-fireplace.jpg",
    "staged": "results/veltas/05.jpg"
  }
}