{
  "original": {
    "width": 1920,
    "height": 1528,
    "megapixels": 2.93
  },
  "staged": {
    "width": 1406,
    "height": 1119,
    "megapixels": 1.57
  },
  "aspect_ratio": {
    "original": 1.2565,
    "staged": 1.2565,
    "deviation": 0.0001,
    "pass": true
  },
  "resolution_kept": false,
  "resolution_ratio": 0.536,
  "raw_drift_score": 52.7,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 659,
    "keypoints_staged": 1262,
    "matches": 144,
    "affine_anisotropy": 0.0039,
    "inliers": 96,
    "inlier_ratio": 0.667,
    "median_residual_px": 0.69,
    "matrix_staged_to_original_work": [
      [
        0.99518,
        -0.00039,
        -19.41469
      ],
      [
        0.00039,
        0.99518,
        34.95101
      ]
    ]
  },
  "framing": {
    "pass": false,
    "result": "fail: only 93.5% of the original frame visible; 5.6% of the output is outside the original frame",
    "zoom": 1.0048,
    "shift_px": [
      -41.3,
      62.2
    ],
    "shift_pct": [
      -2.15,
      4.07
    ],
    "rotation_deg": 0.022,
    "visible_overlap_pct": 93.51,
    "invented_area_pct": 5.58,
    "original_px_lost": {
      "left": 0.0,
      "right": 46.2,
      "top": 66.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.8983,
      "line_displaced_frac": 0.0685,
      "line_missing_frac": 0.0332,
      "structural_line_pixels": 61823
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.741,
    "line_recall": 0.5604,
    "line_displaced_frac": 0.2535,
    "line_missing_frac": 0.1862,
    "structural_line_pixels": 15938,
    "evaluated_area_frac": 0.585,
    "drift_score": 34.9,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.901,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 34.9,
  "structure": {
    "edge_ssim": 0.672,
    "line_recall": 0.2745,
    "line_displaced_frac": 0.3302,
    "line_missing_frac": 0.3954,
    "structural_line_pixels": 14804,
    "evaluated_area_frac": 0.649,
    "drift_score": 52.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/06-bedroom-single-window.jpg",
    "staged": "results/immostage/06.jpg"
  }
}