Skip to content

LR-EDIT-OPTICS-PROFILE: keep Sony aspect crops outside validated corrections - #695

Merged
bflatastic merged 1 commit into
storytold:mainfrom
QuirkyTurtle94:sony-native-crop-validation
Oct 11, 2026
Merged

bflatastic merged 1 commit into
storytold:mainfrom
QuirkyTurtle94:sony-native-crop-validation

Conversation

@QuirkyTurtle94

Copy link
Copy Markdown
Contributor

After #498, an ILCE-7RM4A file can receive embedded distortion correction when Sony's image crop is non-3:2 but DefaultCrop still describes 3:2 geometry. That bypasses the intended validation boundary. Keep main's crop precedence and the independently validated optical centre, but require native framing for the image crop as well as the table geometry.

  • Extend the existing header/full/DNG regression across both TIFF byte orders with conflicting crop aspects. It failed on 7962c78 before the guard and passes with the guard.
  • Expand the model-boundary regression to all 23 Sony corpus files across 17 bodies, including the A900 packed-12-bit sample newly added in Integrate #573, #498, #602, #601, #560, #555, #480, #590 #692. Only the independently validated ILCE-7RM4A receives a warp; the other files check safe exclusion, not new lens-geometry support.
  • Advance the render-cache version from 42 to 43 and document the retained crop-origin translation separately from distortion residuals.

Validation on b70ae174 plus this patch:

  • cargo xtask corpus --download: all 103 manifest files are present and SHA-256 verified.
  • cargo xtask ci: all eight stages pass, including all 20 raw corpus tests and both formerly failing Metal denoise tests. No additional test exclusions; RUST_TEST_THREADS=1.
  • Fresh Sony-reference comparisons at 2376 px wide: corrected median/p95 0.36/1.12 px (24 mm), 0.13/0.35 px (200 mm), 0.10/0.37 px (600 mm), after subtracting translation only. The retained framing differs from Sony by approximately 8 px horizontally; this is documented separately from distortion residuals.

#498 merged in #692 while this validation was running, so these remaining changes are isolated here. Support remains restricted to the validated ILCE-7RM4A; #653's A6700 samples need separate geometry validation. No private RAWs, reference exports or binary fixtures are committed or uploaded.

… corpus

Keep image framing inside the validated 3:2 scope even when DefaultCrop retains native geometry. Cover all 23 Sony fixtures, preserve crop precedence, invalidate old renders, and record fresh Sony reference measurements.

Co-authored-by: Codex <noreply@openai.com>

Copy link
Copy Markdown
Member

Landed in #981. Thanks, @QuirkyTurtle94!


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants