{
  "original": {
    "width": 1600,
    "height": 1200,
    "megapixels": 1.92
  },
  "staged": {
    "width": 2390,
    "height": 1792,
    "megapixels": 4.28
  },
  "aspect_ratio": {
    "original": 1.3333,
    "staged": 1.3337,
    "deviation": 0.0003,
    "pass": true
  },
  "resolution_kept": true,
  "resolution_ratio": 2.231,
  "raw_drift_score": 9.3,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 736,
    "keypoints_staged": 760,
    "matches": 326,
    "affine_anisotropy": 0.0017,
    "inliers": 287,
    "inlier_ratio": 0.88,
    "median_residual_px": 0.35,
    "matrix_staged_to_original_work": [
      [
        0.99842,
        -0.00077,
        0.17187
      ],
      [
        0.00077,
        0.99842,
        -0.02092
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 1.0016,
    "shift_px": [
      -1.5,
      -0.4
    ],
    "shift_pct": [
      -0.09,
      -0.03
    ],
    "rotation_deg": 0.044,
    "visible_overlap_pct": 99.89,
    "invented_area_pct": 0.0,
    "original_px_lost": {
      "left": 0.3,
      "right": 3.2,
      "top": 1.2,
      "bottom": 1.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.9922,
      "line_displaced_frac": 0.0073,
      "line_missing_frac": 0.0005,
      "structural_line_pixels": 59849
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.9202,
    "line_recall": 0.9275,
    "line_displaced_frac": 0.0666,
    "line_missing_frac": 0.0058,
    "structural_line_pixels": 20736,
    "evaluated_area_frac": 0.644,
    "drift_score": 7.6,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.991,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 7.6,
  "structure": {
    "edge_ssim": 0.9123,
    "line_recall": 0.902,
    "line_displaced_frac": 0.0719,
    "line_missing_frac": 0.026,
    "structural_line_pixels": 22037,
    "evaluated_area_frac": 0.65,
    "drift_score": 9.3,
    "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/stylesmarter/room-type/08.jpg"
  }
}