{
  "original": {
    "width": 1280,
    "height": 960,
    "megapixels": 1.23
  },
  "staged": {
    "width": 684,
    "height": 512,
    "megapixels": 0.35
  },
  "aspect_ratio": {
    "original": 1.3333,
    "staged": 1.3359,
    "deviation": 0.002,
    "pass": true
  },
  "resolution_kept": false,
  "resolution_ratio": 0.285,
  "raw_drift_score": 7.8,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 366,
    "keypoints_staged": 735,
    "matches": 173,
    "affine_anisotropy": 0.0018,
    "inliers": 154,
    "inlier_ratio": 0.89,
    "median_residual_px": 0.46,
    "matrix_staged_to_original_work": [
      [
        0.99933,
        0.00023,
        0.44083
      ],
      [
        -0.00023,
        0.99933,
        1.02693
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0007,
    "shift_px": [
      0.2,
      0.2
    ],
    "shift_pct": [
      0.02,
      0.02
    ],
    "rotation_deg": -0.013,
    "visible_overlap_pct": 99.82,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 0.8,
      "right": 0.3,
      "top": 1.3,
      "bottom": 0.9
    },
    "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.9215,
      "line_displaced_frac": 0.0416,
      "line_missing_frac": 0.0368,
      "structural_line_pixels": 24790
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.9004,
    "line_recall": 0.9505,
    "line_displaced_frac": 0.0134,
    "line_missing_frac": 0.0361,
    "structural_line_pixels": 9146,
    "evaluated_area_frac": 0.642,
    "drift_score": 7.5,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.988,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 7.5,
  "structure": {
    "edge_ssim": 0.9001,
    "line_recall": 0.9439,
    "line_displaced_frac": 0.015,
    "line_missing_frac": 0.0411,
    "structural_line_pixels": 9146,
    "evaluated_area_frac": 0.65,
    "drift_score": 7.8,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": null,
  "seconds_approx": true,
  "files": {
    "original": "photos/03-room-passage-desk.jpg",
    "staged": "results/sofabrain/03.jpg"
  }
}