{
  "original": {
    "width": 1920,
    "height": 1484,
    "megapixels": 2.85
  },
  "staged": {
    "width": 664,
    "height": 512,
    "megapixels": 0.34
  },
  "aspect_ratio": {
    "original": 1.2938,
    "staged": 1.2969,
    "deviation": 0.0024,
    "pass": true
  },
  "resolution_kept": false,
  "resolution_ratio": 0.119,
  "raw_drift_score": 8.6,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 550,
    "keypoints_staged": 964,
    "matches": 273,
    "affine_anisotropy": 0.0015,
    "inliers": 222,
    "inlier_ratio": 0.813,
    "median_residual_px": 0.61,
    "matrix_staged_to_original_work": [
      [
        1.00058,
        -0.00019,
        -0.18088
      ],
      [
        0.00019,
        1.00058,
        -0.06102
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 0.9994,
    "shift_px": [
      0.1,
      -0.4
    ],
    "shift_pct": [
      0.0,
      -0.03
    ],
    "rotation_deg": 0.011,
    "visible_overlap_pct": 100.0,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 0.0,
      "right": 0.0,
      "top": 0.2,
      "bottom": 1.1
    },
    "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.9715,
      "line_displaced_frac": 0.0259,
      "line_missing_frac": 0.0025,
      "structural_line_pixels": 83985
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.9332,
    "line_recall": 0.9106,
    "line_displaced_frac": 0.0696,
    "line_missing_frac": 0.0199,
    "structural_line_pixels": 21347,
    "evaluated_area_frac": 0.65,
    "drift_score": 7.8,
    "aligned": true,
    "evaluated_area_frac_of_mask": 1.0,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 7.8,
  "structure": {
    "edge_ssim": 0.9323,
    "line_recall": 0.8966,
    "line_displaced_frac": 0.0826,
    "line_missing_frac": 0.0208,
    "structural_line_pixels": 21349,
    "evaluated_area_frac": 0.65,
    "drift_score": 8.6,
    "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/sofabrain/05.jpg"
  }
}