{
  "original": {
    "width": 1600,
    "height": 1200,
    "megapixels": 1.92
  },
  "staged": {
    "width": 1195,
    "height": 896,
    "megapixels": 1.07
  },
  "aspect_ratio": {
    "original": 1.3333,
    "staged": 1.3337,
    "deviation": 0.0003,
    "pass": true
  },
  "resolution_kept": false,
  "resolution_ratio": 0.558,
  "raw_drift_score": 18.3,
  "alignment": {
    "ok": true,
    "method": "SIFT + ratio test + RANSAC similarity (estimateAffinePartial2D)",
    "keypoints_original": 736,
    "keypoints_staged": 1409,
    "matches": 81,
    "affine_anisotropy": 0.0005,
    "inliers": 25,
    "inlier_ratio": 0.309,
    "median_residual_px": 1.23,
    "matrix_staged_to_original_work": [
      [
        1.00145,
        -0.00041,
        -1.11384
      ],
      [
        0.00041,
        1.00145,
        -1.15328
      ]
    ]
  },
  "framing": {
    "pass": true,
    "result": "pass",
    "zoom": 0.9985,
    "shift_px": [
      -0.8,
      -0.6
    ],
    "shift_pct": [
      -0.05,
      -0.05
    ],
    "rotation_deg": 0.023,
    "visible_overlap_pct": 100.0,
    "invented_area_pct": 0.23,
    "original_px_lost": {
      "left": 0.0,
      "right": 0.0,
      "top": 0.0,
      "bottom": 0.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.9484,
      "line_displaced_frac": 0.0491,
      "line_missing_frac": 0.0025,
      "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.7398,
    "line_recall": 0.9124,
    "line_displaced_frac": 0.0778,
    "line_missing_frac": 0.0099,
    "structural_line_pixels": 22032,
    "evaluated_area_frac": 0.65,
    "drift_score": 17.4,
    "aligned": true,
    "evaluated_area_frac_of_mask": 1.0,
    "mask": "auto: top 65% of frame"
  },
  "drift_score": 17.4,
  "structure": {
    "edge_ssim": 0.7406,
    "line_recall": 0.8932,
    "line_displaced_frac": 0.0962,
    "line_missing_frac": 0.0107,
    "structural_line_pixels": 22037,
    "evaluated_area_frac": 0.65,
    "drift_score": 18.3,
    "mask": "auto: top 65% of frame",
    "note": "legacy unaligned structure check (= raw_drift_score)"
  },
  "seconds_to_result": 25,
  "seconds_approx": true,
  "files": {
    "original": "photos/08-loft-kitchen-ducts.jpg",
    "staged": "results/collov/08.jpg"
  }
}