{
  "original": {
    "width": 1920,
    "height": 1528,
    "megapixels": 2.93
  },
  "staged": {
    "width": 1146,
    "height": 912,
    "megapixels": 1.05
  },
  "aspect_ratio": {
    "original": 1.2565,
    "staged": 1.2566,
    "deviation": 0.0,
    "pass": true
  },
  "resolution_kept": false,
  "resolution_ratio": 0.356,
  "raw_drift_score": 30.7,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 659,
    "keypoints_staged": 1537,
    "matches": 91,
    "affine_anisotropy": 0.0013,
    "inliers": 44,
    "inlier_ratio": 0.484,
    "median_residual_px": 0.91,
    "matrix_staged_to_original_work": [
      [
        0.99468,
        0.00168,
        -2.07315
      ],
      [
        -0.00168,
        0.99468,
        2.44946
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0053,
    "shift_px": [
      -7.7,
      -1.1
    ],
    "shift_pct": [
      -0.4,
      -0.07
    ],
    "rotation_deg": -0.097,
    "visible_overlap_pct": 98.99,
    "invented_area_pct": 0.15,
    "original_px_lost": {
      "left": 0.0,
      "right": 14.1,
      "top": 4.6,
      "bottom": 6.8
    },
    "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.9402,
      "line_displaced_frac": 0.0522,
      "line_missing_frac": 0.0076,
      "structural_line_pixels": 57649
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.7101,
    "line_recall": 0.7664,
    "line_displaced_frac": 0.1663,
    "line_missing_frac": 0.0673,
    "structural_line_pixels": 15472,
    "evaluated_area_frac": 0.635,
    "drift_score": 26.2,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.979,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 26.2,
  "structure": {
    "edge_ssim": 0.6878,
    "line_recall": 0.6979,
    "line_displaced_frac": 0.2358,
    "line_missing_frac": 0.0663,
    "structural_line_pixels": 14804,
    "evaluated_area_frac": 0.649,
    "drift_score": 30.7,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": 38,
  "seconds_approx": true,
  "files": {
    "original": "photos/06-bedroom-single-window.jpg",
    "staged": "results/collov/06.jpg"
  }
}