Skip to content

LR-IMP-CAMERA-COVERAGE: Nikon D600, D610 and D5000 NEFs drop the columns past the image (#1627) - #1770

Closed
endthestart wants to merge 2 commits into
storytold:mainfrom
endthestart:fix/1627-d610-image-area
Closed

endthestart wants to merge 2 commits into
storytold:mainfrom
endthestart:fix/1627-d610-image-area

Conversation

@endthestart

Copy link
Copy Markdown
Contributor

The D600 and D610 write 6080 x 4028 samples where columns 6034 to 6047 are filler and noise and only the last 32 are dark, so the masked-column check keeps them and they show up as the bright line on the right from #1627. I measured both bodies on the CC0 NEFs on raw.pixls.us (4 of each, 12 and 14-bit, lossless and lossy). The camera JPEG is 6016 x 4016 and sits at (8, 6) in all 8, so they join the D4 and D90 in MEASURED_BODIES. The noise columns were also being read as a saturation plateau. For example, the white came out at 3182 on a D600 file whose picture goes up to 3450. So for measured bodies without a fixed white level, it's now measured inside the image area only.

The D5000 has the same sensor and filler as the D90, so it gets the D90's area and white level. Both raw.pixls.us samples had Auto Distortion Control on, so only the center of their JPEGs lines up, and it lines up at (10, 10) like the D90.

I added a test with synthetic D600, D610 and D5000 data, and all 10 samples now render at the camera JPEG's size with no line. If there's a better way to handle these bodies let me know, I'm happy to change it. Thanks!

Fixes #1627

bogusyogi added a commit to Orthic-Labs/ember that referenced this pull request Oct 15, 2026
…mns past the image (storytold#1627) (upstream storytold#1770)

Applied from storytold/lightcraft PR storytold#1770 (open upstream, not yet merged); docs merged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-area

# Conflicts:
#	docs/parity-checklist.md
@endthestart

Copy link
Copy Markdown
Contributor Author

Closing this in favour of #1053, which measures the D600, D610 and D5000 frames along with many other bodies. I left a note there about the white level part. Thanks!

endthestart pushed a commit to endthestart/lightcraft that referenced this pull request Oct 15, 2026
# Conflicts:
#	crates/raw/src/vendor/nef.rs
#	docs/parity-checklist.md
#	docs/raw-parity.md
#	docs/whats-new.md
endthestart pushed a commit to endthestart/lightcraft that referenced this pull request Oct 15, 2026
…orytold#1770 both added them, with the same crops)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

[Bug Report] [LightCraft] Line on the right edge of phot after importing .raw file

1 participant