{
  "original": {
    "width": 1920,
    "height": 1295,
    "megapixels": 2.49
  },
  "staged": {
    "width": 1527,
    "height": 1030,
    "megapixels": 1.57
  },
  "aspect_ratio": {
    "original": 1.4826,
    "staged": 1.4825,
    "deviation": 0.0001,
    "pass": true
  },
  "resolution_kept": false,
  "resolution_ratio": 0.633,
  "raw_drift_score": 57.4,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 1016,
    "keypoints_staged": 2184,
    "matches": 153,
    "affine_anisotropy": 0.0032,
    "inliers": 131,
    "inlier_ratio": 0.856,
    "median_residual_px": 0.72,
    "matrix_staged_to_original_work": [
      [
        0.99463,
        0.00015,
        2.90762
      ],
      [
        -0.00015,
        0.99463,
        25.09547
      ]
    ]
  },
  "framing": {
    "pass": false,
    "result": "fail: only 96.0% of the original frame visible; 2.9% of the output is outside the original frame",
    "zoom": 1.0054,
    "shift_px": [
      0.4,
      43.4
    ],
    "shift_pct": [
      0.02,
      3.35
    ],
    "rotation_deg": -0.009,
    "visible_overlap_pct": 95.96,
    "invented_area_pct": 2.89,
    "original_px_lost": {
      "left": 5.6,
      "right": 4.9,
      "top": 47.1,
      "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.9499,
      "line_displaced_frac": 0.0444,
      "line_missing_frac": 0.0057,
      "structural_line_pixels": 75406
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.5697,
    "line_recall": 0.5044,
    "line_displaced_frac": 0.3319,
    "line_missing_frac": 0.1638,
    "structural_line_pixels": 35699,
    "evaluated_area_frac": 0.6,
    "drift_score": 46.3,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.923,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 46.3,
  "structure": {
    "edge_ssim": 0.502,
    "line_recall": 0.3501,
    "line_displaced_frac": 0.4034,
    "line_missing_frac": 0.2465,
    "structural_line_pixels": 35029,
    "evaluated_area_frac": 0.65,
    "drift_score": 57.4,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": null,
  "seconds_approx": true,
  "files": {
    "original": "photos/07-living-large-window.jpg",
    "staged": "results/immostage/07.jpg"
  }
}