{
  "original": {
    "width": 1920,
    "height": 1528,
    "megapixels": 2.93
  },
  "staged": {
    "width": 2292,
    "height": 1824,
    "megapixels": 4.18
  },
  "aspect_ratio": {
    "original": 1.2565,
    "staged": 1.2566,
    "deviation": 0.0,
    "pass": true
  },
  "resolution_kept": true,
  "resolution_ratio": 1.425,
  "raw_drift_score": 32.6,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 659,
    "keypoints_staged": 760,
    "matches": 171,
    "affine_anisotropy": 0.0014,
    "inliers": 147,
    "inlier_ratio": 0.86,
    "median_residual_px": 0.56,
    "matrix_staged_to_original_work": [
      [
        0.97657,
        -0.00068,
        -1.30205
      ],
      [
        0.00068,
        0.97657,
        8.50002
      ]
    ]
  },
  "framing": {
    "pass": false,
    "result": "fail: only 95.4% of the original frame visible; zoom 1.024",
    "zoom": 1.024,
    "shift_px": [
      -25.5,
      -1.3
    ],
    "shift_pct": [
      -1.33,
      -0.09
    ],
    "rotation_deg": 0.04,
    "visible_overlap_pct": 95.39,
    "invented_area_pct": 0.15,
    "original_px_lost": {
      "left": 0.0,
      "right": 48.5,
      "top": 17.2,
      "bottom": 19.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.955,
      "line_displaced_frac": 0.0261,
      "line_missing_frac": 0.0189,
      "structural_line_pixels": 57582
    },
    "note": "low-threshold Canny that also sees white wall/soffit/column edges; not part of drift_score"
  },
  "architecture": {
    "edge_ssim": 0.8165,
    "line_recall": 0.7987,
    "line_displaced_frac": 0.1137,
    "line_missing_frac": 0.0876,
    "structural_line_pixels": 14563,
    "evaluated_area_frac": 0.615,
    "drift_score": 19.2,
    "aligned": true,
    "evaluated_area_frac_of_mask": 0.947,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 19.2,
  "structure": {
    "edge_ssim": 0.7385,
    "line_recall": 0.6088,
    "line_displaced_frac": 0.2404,
    "line_missing_frac": 0.1508,
    "structural_line_pixels": 14804,
    "evaluated_area_frac": 0.649,
    "drift_score": 32.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/06-bedroom-single-window.jpg",
    "staged": "results/stylesmarter/06.jpg"
  }
}