{
  "original": {
    "width": 1600,
    "height": 1200,
    "megapixels": 1.92
  },
  "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.182,
  "raw_drift_score": 9.1,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 736,
    "keypoints_staged": 1113,
    "matches": 333,
    "affine_anisotropy": 0.0004,
    "inliers": 263,
    "inlier_ratio": 0.79,
    "median_residual_px": 0.44,
    "matrix_staged_to_original_work": [
      [
        1.00052,
        -0.00038,
        -0.01061
      ],
      [
        0.00038,
        1.00052,
        0.08342
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 0.9995,
    "shift_px": [
      0.2,
      -0.0
    ],
    "shift_pct": [
      0.01,
      -0.0
    ],
    "rotation_deg": 0.022,
    "visible_overlap_pct": 100.0,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 0.0,
      "right": 0.0,
      "top": 0.7,
      "bottom": 0.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.9674,
      "line_displaced_frac": 0.0248,
      "line_missing_frac": 0.0078,
      "structural_line_pixels": 57204
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.9421,
    "line_recall": 0.8805,
    "line_displaced_frac": 0.0262,
    "line_missing_frac": 0.0932,
    "structural_line_pixels": 22032,
    "evaluated_area_frac": 0.65,
    "drift_score": 8.9,
    "aligned": true,
    "evaluated_area_frac_of_mask": 1.0,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 8.9,
  "structure": {
    "edge_ssim": 0.9414,
    "line_recall": 0.8773,
    "line_displaced_frac": 0.025,
    "line_missing_frac": 0.0977,
    "structural_line_pixels": 22037,
    "evaluated_area_frac": 0.65,
    "drift_score": 9.1,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": null,
  "seconds_approx": true,
  "files": {
    "original": "photos/08-loft-kitchen-ducts.jpg",
    "staged": "results/sofabrain/08.jpg"
  }
}