diff --git a/crates/engine/src/camera_preview.rs b/crates/engine/src/camera_preview.rs index d0ffe33fa76..71978a616b6 100644 --- a/crates/engine/src/camera_preview.rs +++ b/crates/engine/src/camera_preview.rs @@ -86,7 +86,9 @@ use tone::{HighlightCheck, ToneFit, fit_tone, fit_tone_conditional, highlights}; /// the warped candidate's alignment leaves out the pixels outside the sensor instead of reading them as black. /// 14: bundled camera profiles also match the Nikon model spellings that differ in case, spacing or the Z8 alias, /// so previews made without the profile are rebuilt. -pub const LOOK_VERSION: u32 = 14; +/// 28: Nikon Z 6 / Z 7 distortion enters the fitting geometry; Nikon mode 2 Off no longer supplies a warp. +/// Versions through 27 are assigned by other open PRs. Later look changes must renumber above the landed version. +pub const LOOK_VERSION: u32 = 28; #[derive(Clone, Debug)] pub(crate) struct CameraLook { diff --git a/crates/engine/src/media/cache.rs b/crates/engine/src/media/cache.rs index b95c4f3cfc5..d67b10d8a82 100644 --- a/crates/engine/src/media/cache.rs +++ b/crates/engine/src/media/cache.rs @@ -313,11 +313,17 @@ impl MediaCache { self.source_ref_with(p, level, false) } - /// [`Self::source_ref`] without the photo's imported camera profile (keeping its denoised picture): a smart - /// preview keeps the file's own colour, and a cached source developed with the profile doesn't stand in for it. + /// The original without an imported camera profile, keeping denoise and hot-pixel settings. + /// Smart-preview builds must retry the file after reconnect, independently of cached decoded + /// proxies or offline availability. A cached look must never be stamped as the current fit. #[cfg(not(target_arch = "wasm32"))] pub fn source_ref_without_profile(&mut self, p: &Photo, level: SourceLevel) -> SourceRef { - self.source_ref_for(p, level, true, None) + let mut source = self.origin_ref(&p.source, level.max_edge()); + if let SourceRef::File { denoise, outliers, .. } = &mut source { + *outliers = p.develop.removes_hot_pixels(); + *denoise = self.denoise.get(p.id).map(|(spec, loader)| (spec.clone(), loader.clone())); + } + source } fn source_ref_with(&mut self, p: &Photo, level: SourceLevel, cached: bool) -> SourceRef { diff --git a/crates/engine/src/media/source.rs b/crates/engine/src/media/source.rs index 248eb3f54d3..df93fdf5762 100644 --- a/crates/engine/src/media/source.rs +++ b/crates/engine/src/media/source.rs @@ -1,7 +1,8 @@ use super::{Arc, DcpProfile, Deserialize, DevelopSettings, MediaKind, Photo, Rgb32f, Rgba8, Serialize, SourceInfo}; /// Bump when the pipeline's output changes, to invalidate cached thumbnails. -pub const RENDER_CACHE_VERSION: u64 = 77; +/// Above all open-PR assignments checked on 2026-11-05, including #160's `8 | (2 << 32)`. +pub const RENDER_CACHE_VERSION: u64 = 8_589_934_601; /// Thumbnails render at one of these long edges (so window/cell size changes reuse the cache). pub const THUMB_SIZES: [usize; 4] = [128, 256, 384, 512]; diff --git a/crates/engine/src/tests.rs b/crates/engine/src/tests.rs index 958c1228712..2920407a26a 100644 --- a/crates/engine/src/tests.rs +++ b/crates/engine/src/tests.rs @@ -40,6 +40,7 @@ mod mask_effects; mod mask_geometry; mod merge; mod move_to_share; +mod nikon_lens; #[cfg(unix)] mod opened_folder; mod organize; diff --git a/crates/engine/src/tests/import.rs b/crates/engine/src/tests/import.rs index 632ca160075..5999340c583 100644 --- a/crates/engine/src/tests/import.rs +++ b/crates/engine/src/tests/import.rs @@ -2708,7 +2708,11 @@ fn a_stale_refresh_never_rebuilds_a_proxy_from_itself() { let pixels = lightcraft_raster::Rgb32f::from_fn(48, 32, |x, y| [0.02 + (x % 9) as f32 * 0.05, 0.03 + (y % 7) as f32 * 0.04, 0.06]); let info = lightcraft_pipeline::SourceInfo { raw: true, as_shot_temp: 5200.0, as_shot_tint: 6.0, ..Default::default() }; let (p, i) = (pixels.clone(), info.clone()); - s.media.file_loader = Some(std::sync::Arc::new(move |_path, _max_edge, _| Ok((p.clone(), i.clone())))); + s.media.file_loader = Some(std::sync::Arc::new(move |path, _max_edge, _| { + // A fresh attempt must fail while the original is offline, as a real decoder would. + std::fs::metadata(path).map_err(|error| error.to_string())?; + Ok((p.clone(), i.clone())) + })); s.execute("library.import", &json!({"paths": [src.join("a.png").to_string_lossy()]})).unwrap(); let id = s.active().unwrap(); // a raw that takes the per-file camera look, so an older fit makes its proxy stale diff --git a/crates/engine/src/tests/nikon_lens.rs b/crates/engine/src/tests/nikon_lens.rs new file mode 100644 index 00000000000..2b26e47874e --- /dev/null +++ b/crates/engine/src/tests/nikon_lens.rs @@ -0,0 +1,301 @@ +//! Nikon source corrections across the decoder, optics controls, export and existing libraries. + +use std::path::PathBuf; +use std::sync::Arc; + +use craft_tiff::{ByteOrder, IfdBuilder, ImageData, TiffWriter, Value, tags}; +use lightcraft_catalog::Op; +use lightcraft_develop::DevelopSettings; +use lightcraft_geom::Orientation; +use lightcraft_pipeline::{RenderRequest, SourceInfo}; +use lightcraft_raster::{Rgb32f, Rgba8}; +use serde_json::json; + +use crate::{Session, files}; + +/// Original procedural sensor data and NikonNEFInfo records, with no external media fixture. +fn nef(model: &str, orientation: Orientation) -> Vec { + fn rational(value: f64, denominator: i32) -> Vec { + let numerator = (value * f64::from(denominator)).round() as i32; + [numerator.to_le_bytes(), denominator.to_le_bytes()].concat() + } + let mut distortion = b"0100\x03\x01\0\0".to_vec(); + distortion.extend(rational(21.6, 4096)); + distortion.extend(4u32.to_le_bytes()); + for value in [0.039895, 0.019211, -0.127218, 0.0, 0.0] { + distortion.extend(rational(value, 1 << 20)); + } + distortion.extend([0u8; 4]); + distortion.extend(rational(-0.025043, 1 << 20)); + distortion.resize(84, 0); + let mut center = b"0100".to_vec(); + center.extend(rational(1.5, 256)); + center.extend(rational(-0.75, 256)); + center.resize(24, 0); + let mut info = IfdBuilder::new(); + info.set(5, Value::Undefined(distortion)); + info.set(8, Value::Undefined(center)); + let mut blob = b"Nikon\0\x01\x03\0\0".to_vec(); + blob.extend(TiffWriter::default().write(&[info]).unwrap()); + let (w, h) = (192u32, 128u32); + let mut samples = Vec::new(); + for y in 0..h { + for x in 0..w { + let rgb = [2200 + x * 25, 3000 + y * 30, 2600 + (x + y) * 10]; + let channel = [[0, 1], [1, 2]][y as usize % 2][x as usize % 2]; + samples.extend((rgb[channel] as u16).to_le_bytes()); + } + } + let mut raw = IfdBuilder::new(); + raw.set(tags::NEW_SUBFILE_TYPE, Value::Long(vec![0])); + raw.set(tags::IMAGE_WIDTH, Value::Long(vec![w])); + raw.set(tags::IMAGE_LENGTH, Value::Long(vec![h])); + raw.set(tags::BITS_PER_SAMPLE, Value::Short(vec![14])); + raw.set(tags::COMPRESSION, Value::Short(vec![1])); + raw.set(tags::PHOTOMETRIC, Value::Short(vec![tags::photometric::CFA])); + raw.set(tags::CFA_REPEAT_PATTERN_DIM, Value::Short(vec![2, 2])); + raw.set(tags::CFA_PATTERN_EP, Value::Byte(vec![0, 1, 1, 2])); + raw.set(0xc7d5, Value::Undefined(blob)); + raw.set_image(ImageData::Strips { rows_per_strip: h, strips: vec![samples] }); + let mut root = IfdBuilder::new(); + root.set(tags::MAKE, Value::Ascii("NIKON CORPORATION".into())); + root.set(tags::MODEL, Value::Ascii(model.into())); + root.set(tags::ORIENTATION, Value::Short(vec![orientation.to_exif()])); + root.add_sub_ifd(raw); + TiffWriter::new(ByteOrder::Little, false).write(&[root]).unwrap() +} + +fn settings(info: &SourceInfo) -> DevelopSettings { + let mut s = DevelopSettings::default(); + s.wb.temp = info.as_shot_temp; + s.wb.tint = info.as_shot_tint; + s.optics.lens_profile = true; + s +} + +fn render(source: &Rgb32f, info: &SourceInfo, settings: &DevelopSettings, edge: usize) -> Rgba8 { + lightcraft_pipeline::render(source, info, settings, &RenderRequest::fit(edge, edge)).image +} + +fn difference(a: &Rgba8, b: &Rgba8) -> (f64, u8) { + assert_eq!((a.width, a.height), (b.width, b.height)); + let values: Vec<_> = a.data.iter().zip(&b.data).flat_map(|(a, b)| (0..3).map(move |c| a[c].abs_diff(b[c]))).collect(); + (values.iter().map(|&v| f64::from(v)).sum::() / values.len() as f64, values.into_iter().max().unwrap()) +} + +/// The import probe and the renderer must agree on the lens controlled by the Optics panel. +#[test] +fn nikon_z6_z7_profile_toggle_and_amount_control_the_imported_warp() { + for model in ["NIKON Z 6", "NIKON Z 7"] { + let bytes = nef(model, Orientation::Normal); + let lens = files::probe_bytes("photo.nef", &bytes).unwrap().embedded_lens.unwrap(); + assert!(lens.warp.is_some() && lens.vignette.is_none()); + let (source, info) = files::load_bytes(&bytes, 192).unwrap(); + assert_eq!(info.lens, Some(lens)); + let mut s = settings(&info); + let on = render(&source, &info, &s, 192); + s.optics.lens_profile = false; + let off = render(&source, &info, &s, 192); + assert_ne!(on.data, off.data); + s.optics.lens_profile = true; + s.optics.profile_distortion = 0.0; + assert_eq!(render(&source, &info, &s, 192).data, off.data); + s.optics.profile_distortion = 50.0; + let half = render(&source, &info, &s, 192); + assert_ne!(half.data, off.data); + assert_ne!(half.data, on.data); + s.disabled_sections.push("optics".into()); + assert_eq!(render(&source, &info, &s, 192).data, off.data); + } +} + +/// A sensor-shifted warp must rotate with the sensor, and reduced development must retain its geometry. +#[test] +fn nikon_orientation_and_preview_export_geometry_agree() { + for model in ["NIKON Z 6", "NIKON Z 7"] { + let (source, info) = files::load_bytes(&nef(model, Orientation::Normal), 192).unwrap(); + let s = settings(&info); + let full = render(&source, &info, &s, 192); + for exif in 1..=8 { + let orientation = Orientation::from_exif(exif); + let (source, info) = files::load_bytes(&nef(model, orientation), 192).unwrap(); + let actual = render(&source, &info, &s, 192); + let expected = full.oriented(orientation); + let (mean, max) = difference(&actual, &expected); + assert!(mean <= 0.5 && max <= 3, "{model} {orientation:?}: mean {mean}, max {max}"); + } + let (preview, preview_info) = files::load_bytes(&nef(model, Orientation::Normal), 96).unwrap(); + let actual = render(&preview, &preview_info, &s, 96); + let expected = lightcraft_raster::resample::resize( + &full.map(|p| p.map(f32::from)), + actual.width, + actual.height, + lightcraft_raster::resample::Filter::Lanczos3, + ) + .map(|p| p.map(|v| v.round().clamp(0.0, 255.0) as u8)); + let (mean, max) = difference(&actual, &expected); + eprintln!("{model} preview/full: mean {mean}, max {max}"); + assert!(mean <= 1.0 && max <= 8, "{model} preview/full: mean {mean}, max {max}"); + let full_warp = lightcraft_pipeline::optics::Warp::from_settings(source.width as f64, source.height as f64, &s, info.lens.as_ref()); + let preview_warp = + lightcraft_pipeline::optics::Warp::from_settings(preview.width as f64, preview.height as f64, &s, preview_info.lens.as_ref()); + for x in [0.025, 0.5, 0.975] { + for y in [0.025, 0.5, 0.975] { + let a = full_warp.to_source(lightcraft_geom::Point::new(x * full_warp.w, y * full_warp.h), 1); + let b = preview_warp.to_source(lightcraft_geom::Point::new(x * preview_warp.w, y * preview_warp.h), 1); + assert!((a.x / full_warp.w - b.x / preview_warp.w).abs() < 1e-12); + assert!((a.y / full_warp.h - b.y / preview_warp.h).abs() < 1e-12); + } + } + } +} + +/// Exercise the exact Nikon-derived profile on the GPU as well as the CPU reference. +#[test] +fn nikon_distortion_cpu_gpu_agree() { + if !lightcraft_gpu::available() { + let reason = lightcraft_gpu::unavailable_reason().unwrap_or_default(); + assert!(!reason.contains("kernels failed to build"), "{reason}"); + lightcraft_testkit::skip!(Gpu, "no GPU adapter for Nikon optics comparison: {reason}"); + return; + } + eprintln!("Nikon optics GPU: {}", lightcraft_gpu::adapter_name().unwrap_or_default()); + for model in ["NIKON Z 6", "NIKON Z 7"] { + let (source, info) = files::load_bytes(&nef(model, Orientation::Rotate90), 192).unwrap(); + let source = Arc::new(source); + let mut s = settings(&info); + for amount in [0.0, 50.0, 100.0] { + s.optics.profile_distortion = amount; + let request = RenderRequest::fit(192, 192); + let cpu = lightcraft_pipeline::render(&source, &info, &s, &request); + let gpu = lightcraft_gpu::render(&source, &info, &s, &request, None).expect("available GPU must render Nikon optics"); + let (mean, max) = difference(&cpu.image, &gpu.image); + assert!(mean <= 0.5 && max <= 3, "{model} {amount}: mean {mean}, max {max}"); + } + } +} + +struct Scratch(PathBuf); +impl Scratch { + fn new(model: &str) -> Self { + let p = std::env::temp_dir().join(format!("lc-nikon-lens-{}-{}", std::process::id(), model.replace(' ', "_"))); + std::fs::create_dir_all(&p).unwrap(); + Self(p) + } +} +impl Drop for Scratch { + fn drop(&mut self) { + let _ = std::fs::remove_dir_all(&self.0); + } +} + +/// Give a synthetic old preview its actual pre-change look version, preserving the JPEG and facts tail. +fn old_header(bytes: &[u8]) -> Vec { + let start = b"LCSP1\n".len(); + let end = start + bytes[start..].iter().position(|&b| b == b'\n').unwrap(); + let mut header: serde_json::Value = serde_json::from_slice(&bytes[start..end]).unwrap(); + header["look_version"] = json!(13); + let mut out = bytes[..start].to_vec(); + out.extend(serde_json::to_vec(&header).unwrap()); + out.extend(&bytes[end..]); + out +} + +/// Reopen a pre-correction library, preserve edited settings, and migrate stored pixels and lens facts only online. +#[test] +fn nikon_existing_library_and_smart_preview_refresh_preserve_edits() { + const { assert!(crate::media::RENDER_CACHE_VERSION > 75, "the source change must invalidate old renders") }; + for model in ["NIKON Z 6", "NIKON Z 7"] { + let scratch = Scratch::new(model); + let original = scratch.0.join("photo.nef"); + let library = scratch.0.join("library"); + let bytes = nef(model, Orientation::Normal); + std::fs::write(&original, &bytes).unwrap(); + let mut s = Session::new().with_fs(); + s.open_library(&library, false).unwrap(); + s.execute("library.import", &json!({"paths":[original]})).unwrap(); + let id = s.active().unwrap(); + let mut edited = (*s.catalog.photo(id).unwrap().develop).clone(); + assert!(edited.optics.lens_profile, "import enables the embedded correction"); + edited.light.exposure = 0.7; + edited.optics.lens_profile = false; + s.commit( + "Old edit", + Op::Batch { + ops: vec![ + Op::SetEmbeddedLens { id, lens: None }, + Op::SetDevelop { id, settings: Arc::new(edited.clone()), label: "Old edit".into(), edited: Some("2026-10-12T00:00:00".into()) }, + ], + }, + ) + .unwrap(); + s.persist_if_dirty(); + s.flush_log().unwrap(); + drop(s); + let mut s = Session::new().with_fs(); + s.open_library(&library, false).unwrap(); + assert_eq!(*s.catalog.photo(id).unwrap().develop, edited); + assert!(s.catalog.photo(id).unwrap().embedded_lens.is_none()); + let (source, mut info) = files::load_bytes(&bytes, 192).unwrap(); + let new_lens = info.lens; + assert!(new_lens.is_some()); + info.lens = None; + let old_tone = lightcraft_pipeline::tone::CameraTone::new(std::array::from_fn(|i| { + let x = 0.004 * 1.17f32.powi(i as i32); + [x, 0.95 * (1.0 - (-1.5 * x).exp())] + })) + .unwrap(); + info.camera_tone = Some(old_tone); + let old_source = source.map(|p| p.map(|v| v * 0.5)); + let old = old_header(&crate::smart::encode(&old_source, Some(&info)).unwrap()); + let preview = crate::smart::sharded_file_path(s.media.smart_dir.as_ref().unwrap(), s.catalog.photo(id).unwrap()); + std::fs::create_dir_all(preview.parent().unwrap()).unwrap(); + std::fs::write(&preview, &old).unwrap(); + assert!(crate::smart::is_stale(&preview), "look version 13 must be older than this correction"); + let offline = scratch.0.join("offline.nef"); + std::fs::rename(&original, &offline).unwrap(); + s.media.forget(id); + let result = s.execute("library.smartPreviews", &json!({"ids":[id.0]})).unwrap(); + assert_eq!(result["staleKept"], 1, "{result}"); + assert_eq!(std::fs::read(&preview).unwrap(), old); + let (_, tone, stored) = crate::smart::decode(&old).unwrap(); + assert_eq!(tone, Some(old_tone)); + assert!(stored.unwrap().lens.is_none()); + let offline_render = s.render_now(id, 600, 600).unwrap(); + assert!(!offline_render.image.data.is_empty()); + let cached = s.media.source_ref(s.catalog.photo(id).unwrap(), crate::media::SourceLevel::Preview); + assert!(matches!(cached, crate::media::SourceRef::Loaded(source) if source.from_proxy), "the offline loupe cached the proxy"); + std::fs::rename(&offline, &original).unwrap(); + let result = s.execute("library.smartPreviews", &json!({"ids":[id.0]})).unwrap(); + assert_eq!(result["refreshed"], 1, "{result}"); + assert!(!crate::smart::is_stale(&preview)); + let fresh = std::fs::read(&preview).unwrap(); + let (fresh_pixels, tone, stored) = crate::smart::decode(&fresh).unwrap(); + let (old_pixels, _, _) = crate::smart::decode(&old).unwrap(); + let error = |image: &Rgb32f| { + assert_eq!((image.width, image.height), (source.width, source.height)); + image.data.iter().zip(&source.data).flat_map(|(a, b)| (0..3).map(move |c| (a[c] - b[c]).abs() as f64)).sum::() + / (source.data.len() * 3) as f64 + }; + assert!(error(&fresh_pixels) < error(&old_pixels) / 4.0, "online rebuild replaces fitted pixels as well as header facts"); + assert_ne!(tone, Some(old_tone)); + assert_eq!(stored.unwrap().lens, new_lens); + s.execute("photo.reload", &json!({"ids":[id.0]})).unwrap(); + assert_eq!(s.catalog.photo(id).unwrap().embedded_lens, new_lens); + assert_eq!(*s.catalog.photo(id).unwrap().develop, edited, "reloading lens data preserves the entire edited settings value"); + s.persist_if_dirty(); + s.flush_log().unwrap(); + drop(s); + let mut s = Session::new().with_fs(); + s.open_library(&library, false).unwrap(); + assert_eq!(s.catalog.photo(id).unwrap().embedded_lens, new_lens); + assert_eq!(*s.catalog.photo(id).unwrap().develop, edited); + let options = crate::export::ExportOptions { format: crate::export::ExportFormat::Dng, ..Default::default() }; + let exported = crate::export::export_photo(&mut s, id, &options, 1).unwrap(); + let dng = lightcraft_raw::decode(&exported.bytes).unwrap(); + let nef = lightcraft_raw::decode(&bytes).unwrap(); + assert_eq!(dng.opcodes.list3, nef.opcodes.list3); + assert_eq!(dng.data, nef.data); + assert_eq!(files::embedded_lens(&dng.info()), new_lens); + } +} diff --git a/docs/gaps.md b/docs/gaps.md index 72ff6d72f88..0e42226602c 100644 --- a/docs/gaps.md +++ b/docs/gaps.md @@ -22,7 +22,7 @@ Hours are Opus 5.5 agent wall-clock hours (see [target-app-parity.md](target-app | 5 B | **AI masks: Subject, Sky, People, Background, Landscape** are heuristics; Object / Describe run SAM 3 but its download has no mirror configured | `crates/segment`; ai-masks.md; MASK rows 67% | masking is how most Lightroom users edit today | 40–70 + model decision | [target-app-parity](target-app-parity.md#ai) | | 6 | **Compressed ORF** (support withdrawn) | #3775 decoder removed pending provenance review; uncompressed support remains | compressed files use embedded JPEG previews when available, not sensor data | pending review | [orf-compression](orf-compression.md) | | 7 | **Nikon High Efficiency NEF** (HE / HE★ on Z 8, Z 9, Z 6III, Z f, Z50II, Z5II when set to HE) | named and preview only (#193); needs a pure-Rust JPEG XS decoder | +1.1 points (only shots taken in HE; lossless works on the same bodies); low gain per hour (~0.04), so not a beta blocker | 20–40 | [raw-parity](raw-parity.md) | -| 8 B | **Lens profiles: lensfun only, no picker, no own calibration** (LR-EDIT-OPTICS-PROFILE): the desktop app offers lensfun's database (CC BY-SA 3.0, pinned, never bundled) once on the first launch and downloads it on that click or from Settings, then looks every raw up by its lens ([lens-profiles.md](lens-profiles.md)), but those profiles are not validated against Lightroom, there is no profile picker (in the file / lens database / own calibration) and no calibration wizard; in-file corrections: DNG opcodes, RW2 in-file distortion, Sony ILCE-7RM4A, ILCE-7M3, full-frame ILCE-7CR distortion (Auto only) and ILCE-7RM6 and ILCE-6700 distortion (`docs/sony-ilce7rm6-lens-corrections.md`) and Nikon Z 6II / Z 8 / Z f distortion (`docs/nikon-lens-corrections.md`); tracked in #329 | Adobe ships 3,635 lens profiles; we never use them | distortion / vignetting correction is a default step for many | 40–80 + calibration shots | [raw-parity](raw-parity.md#lens-profiles) | +| 8 B | **Lens profiles: lensfun only, no picker, no own calibration** (LR-EDIT-OPTICS-PROFILE): the desktop app offers lensfun's database (CC BY-SA 3.0, pinned, never bundled) once on the first launch and downloads it on that click or from Settings, then looks every raw up by its lens ([lens-profiles.md](lens-profiles.md)), but those profiles are not validated against Lightroom, there is no profile picker (in the file / lens database / own calibration) and no calibration wizard; in-file corrections: DNG opcodes, RW2 in-file distortion, Sony ILCE-7RM4A, ILCE-7M3, full-frame ILCE-7CR distortion (Auto only) and ILCE-7RM6 and ILCE-6700 distortion (`docs/sony-ilce7rm6-lens-corrections.md`) and Nikon Z 6 / Z 7 / Z 6II / Z 8 / Z f distortion (`docs/nikon-lens-corrections.md`); Z 6 / Z 7 evidence is limited to two scenes at 52/56 mm, with extreme corners unvalidated; Nikon vignette correction remains unfinished; tracked in #329 | Adobe ships 3,635 lens profiles; we never use them | distortion / vignetting correction is a default step for many | 40–80 + calibration shots | [raw-parity](raw-parity.md#lens-profiles) | | 9 B | **Tests don't run in CI on macOS, run on Windows only for Windows code, and no CI job runs the GPU equivalence tests**: the CI gate (`ci.yml`, #2667) runs `cargo xtask ci`, which includes `cargo test`, on Linux x64 for every push to `main` and every pull request; its Windows leg (`ci-windows.yml`) runs clippy and the tests of the crates with `cfg(windows)` code (wincolor, catalog, engine, ui-egui, lightcraft) on windows-latest when a pull request or a push to `main` changes that code, and on pull requests labelled `full-ci`; FreeBSD runs `cargo test` nightly, on pushes to `release` and on PRs that change its workflow or `packaging/freebsd/`; the macOS and Windows jobs build packages | `.github/workflows/` (ci, ci-windows, freebsd, packaging-lint, release, sonarcloud, windows-arm64); the gate's runner has Mesa software Vulkan drivers installed, but `Gpu::new` refuses software adapters (`crates/gpu/src/ctx.rs`), so the CPU ↔ GPU equivalence tests skip; the linux-riscv64 release job added in 0.6.0 (#844) runs only `lightcraft-cli --version` under QEMU; #1148 (open, not merged; #2667 names it superseded) has the macOS and Windows test legs and a `LIGHTCRAFT_GPU_ALLOW_SOFTWARE` opt-in that runs the GPU tests on lavapipe, Metal and WARP | a regression that only shows on macOS, on Windows in code outside the Windows leg's paths, or only on a GPU, reaches users; the full `cargo xtask ci` runs only on Linux in CI | 6–12 | [target-app-parity](target-app-parity.md#by-dimension) | | 10 B | **Per-model verification thin, plus cheap per-body decode fixes**: 557 of 1,446 Adobe models verified (39%), ~86% of photographers on a verified body; Nikon 5 bodies verified, Canon 34, Leica 14 (the Q3 by a recorded check of 38 private DNGs). Cheap fixes: Z 6II packed 14-bit NEF (#769, PR #671), Sony A100 regression (#702); F828 SRF now discovered and imported as preview-only, sensor decoding still missing, DSLR-A200…A390 / A850 12-bit ARW (#535) | measured: [raw/coverage.tsv](raw/coverage.tsv) | per-body bugs (levels, crops, WB) surface only from users | 25–45 | [raw-parity](raw-parity.md#by-maker-measured) | | 11 | **Enhance: Raw Details, Super Resolution; trained denoise weights and X-Trans** | ENH rows 0%; denoise Bayer only; the built-in denoiser is classical (block-matching collaborative filtering), RawNIND weights GPL and opt-in | Fujifilm users get no AI denoise; very noisy files gain less than from a trained model | 30–60 + model decision | [raw-parity](raw-parity.md#demosaic-levels-crops-and-lens-metadata) | @@ -94,6 +94,7 @@ Beta-blocking gaps (B) total **~230–430 h**; with the stability and platform w | 2026-11-07 | correction | Compressed ORF sensor support withdrawn pending provenance review; embedded preview fallback remains. Coverage regenerated without the removed decoder: 557 verified, 665 unverified, 187 preview-only, 37 unsupported; 94% use-weighted coverage. | | 2026-11-04 | minor | Compressed ORF support was introduced in #3775; subsequently withdrawn pending provenance review. Earlier clean-room and verification claims are withdrawn; compressed files use embedded previews when available. See [ORF status](orf-compression.md). | | 2026-11-05 | minor | Gap 3: process V5 rolls a raw's tone curve off into white in stops, so raising Exposure keeps the highlights the sensor recorded (#1632); the gap stays open (no Lightroom comparison) and hours are unchanged | +| 2026-11-05 | minor | LR-EDIT-OPTICS-PROFILE: Nikon Z 6 / Z 7 in-file distortion validated on six exposures of two scenes at 52/56 mm; mode 2 Off rejected; smart previews and cached renders invalidated with distinct audited versions; reconnect rebuilds bypass cached proxies; Nikon vignetting remains unfinished; status unchanged | | 2026-10-27 | minor | Gap 26: the loupe shows built previews (they were rendered again), photos ahead and the whole view are prepared in the background with settings per mode; gap not closed | | 2026-10-27 | minor | Gap 26: culling speed measured and improved (progressive Local browse, camera previews made ahead, a CR3's smallest covering JPEG, camera JPEG first at 100 %); what is left listed; gap not closed | | 2026-11-02 | minor | PERF-STEP-STALL: the catalog log is written and synced off the UI thread, so stepping and flagging never wait for the drive (a 300 ms sync: slowest flag 0.2 ms, was 305 ms); a failed write is held and retried, counted as unsaved, never dropped; gap 26 not closed | diff --git a/docs/nikon-lens-corrections.md b/docs/nikon-lens-corrections.md index 2431cd6dbde..a96967e80e1 100644 --- a/docs/nikon-lens-corrections.md +++ b/docs/nikon-lens-corrections.md @@ -1,101 +1,29 @@ # Nikon embedded distortion corrections -Nikon writes its own distortion correction into NEFs from its mirrorless bodies, in the raw SubIFD tag `0xc7d5` -(NikonNEFInfo). LightCraft reads it for the NIKON Z 6_2 (Z 6II), the NIKON Z 8 and the NIKON Z f and turns it into an -`OpcodeList3` `WarpRectilinear`, so it goes through the same profile correction control, optics path, orientation -handling and DNG export as the other embedded corrections. Other bodies are left alone for now even if they have the -same tag, because I've only checked files from these three. +LightCraft uses the distortion warp that craft-raw reads from supported full-frame Nikon Z 6, Z 7, Z 6II, Z 8 and +Z f NEFs. Modes 1 (On Optional) and 3 (On Required) supply a warp. Modes 0, 2 (Off) and unknown values do not. +The shared decoder documents the file layout, camera support and validation against camera JPEGs. +[Decoder and validation notes](https://github.com/storytold/craft-libs/blob/23acc704933a9a5619a5cd1cddc9bb1fb5a9b2d3/crates/raw/docs/nikon-lens-corrections.md) -This is distortion only. The vignetting block (`0x0006`) and what looks like lateral CA (`0x0007`) aren't applied -yet. Like the Sony, Fujifilm and Panasonic corrections it's on by default and can be turned off under Lens -Corrections. +LightCraft enables the embedded profile on import and gives it precedence over a lens-database profile. The profile +switch and distortion amount control the warp in previews and rendered exports. The correction follows the photo's +orientation. DNG export preserves the warp with the sensor data, including when the profile is switched off for +the current edit. Nikon vignetting remains unsupported. -## Where the data comes from +## Existing libraries -The [ExifTool Nikon tag names](https://exiftool.org/TagNames/Nikon.html) give the names of NikonNEFInfo and its -DistortionInfo entry (`0x0005`): DistortionCorrection and RadialDistortionCoefficient1 to 3. Nothing else was taken -from other software. The rest was worked out by comparing LightCraft's uncorrected render of each NEF with the -full-size JPEG the camera embeds in it. That JPEG is always distortion-corrected with Z lenses ("On (Required)"), and -with other lenses when Auto distortion control is on. The comparison matched textured patches between the two images -(normalised cross-correlation on the green channel at quarter size). +Reload from Disk refreshes the catalog's lens metadata. It enables a newly discovered profile on an untouched photo +without an import preset. A photo with saved edits keeps its settings, including an explicit off switch. -NikonNEFInfo starts with `"Nikon\0"` and a 4-byte version, followed by a small TIFF stream. The two entries used here: +The camera-look fit uses the recognized geometry even when the profile switch is off. Decoding an existing edit +again can therefore change its tone or colour on any process version. LightCraft advances the camera-look and +render-cache versions so it can refresh these fits and thumbnails. An offline original keeps its old smart preview. +After reconnect, Build Smart Previews reads the original even if the loupe has cached the offline proxy. +[Rendering process versions](process-versions.md) -| Entry | Bytes | What it holds | -|---|---|---| -| `0x0005` DistortionInfo | 0–3 | `"0100"` | -| | 4 | correction mode: 1 "On (Optional)", 3 "On (Required)", 0 none | -| | 8–15 | normalisation radius in mm, a signed rational. It's 21.6 (the FX half diagonal) in every file I looked at | -| | 16–19 | number of terms, 4 | -| | 20, 28, 36 | the three coefficients, called `k1`, `k2`, `k3` here after ExifTool's names | -| | 64–71 | the zoom `q` the camera uses to fill the frame | -| `0x0008` | 0–3, 4–11, 12–19 | `"0100"`, then the optical center's offset from the center of the image area in pixels (x right, y down) | +## Render evidence -The `0x0008` offset is where the in-body stabilization left the sensor. It's zero with a VR lens, since the lens does -the stabilizing, and up to about 100 px with the Z lenses. The center of the distortion measured in the JPEG follows -it closely, for example (−90.1, +18.6) recorded and (−91.2, +17.5) measured. - -From an output pixel to the raw, around the optical center, the mapping is - -``` -rho = r_out / half diagonal of the image area -r_src = r_out * (1 + k3*rho^2 + k2*rho^4 + k1*rho^6) / (1 + q) -``` - -So the stored order goes from the highest power down. Reading them the other way round (`k1` with `rho^2`) doesn't fit -the JPEG at all. `q` really is the zoom: fitting a separate zoom for every file gives `1 / (1 + q)` to four decimals -(0.9675 fitted and 0.9676 from `q` on one of them), so nothing is fitted per file. The decoder turns this into DNG -terms the same way `docs/sony-lens-corrections.md` describes for Sony, with the center in active-area coordinates and -the coefficients rescaled to the farthest corner of the active area. - -## How well it matches - -I checked it on 83 of my own Z 6II photos with three lenses between 20 and 200 mm, 45 Z 8 photos (below), plus the -CC0 Z f sample in the corpus. The numbers are the radial error against the camera JPEG at full size (6048 px wide), out to 0.95 half -diagonals: - -| Lens | Focal length | Frames | Uncorrected median / p95 | Corrected median / p95 | -|---|---:|---:|---:|---:| -| VR 70-200mm f/2.8G (F-mount, FTZ) | 70 mm | 11 | 10.9 / 15.9 px | 0.19 / 0.57 px | -| VR 70-200mm f/2.8G (F-mount, FTZ) | 105–140 mm | 15 | 34–42 / 38–46 px | 0.13–0.18 / 0.59–0.90 px | -| VR 70-200mm f/2.8G (F-mount, FTZ) | 175–200 mm | 21 | 45–46 / 50–51 px | 0.10–0.18 / 0.48–0.95 px | -| NIKKOR Z 24-70mm f/4 S | 70 mm | 8 | 126.4 / 141.2 px | 0.48 / 4.38 px | -| NIKKOR Z 24-70mm f/4 S | 38–59 mm | 6 | 59–101 / 69–121 px | 0.36–0.76 / 4.6–6.8 px | -| NIKKOR Z 24-70mm f/4 S | 33–34 mm | 4 | 32–44 / 43–53 px | 1.0–1.3 / 8.5–9.6 px | -| NIKKOR Z 24-70mm f/4 S | 24 mm | 7 | 16.0 / 105.6 px | 6.90 / 23.56 px | -| NIKKOR Z 20mm f/1.8 S | 20 mm | 5 | 8.2 / 53.9 px | 1.49 / 5.46 px | -| Tamron 35-150mm (Z f, CC0 corpus) | 150 mm | 1 | 70.4 px median | 0.22 px median | - -On the Z 8 (8256 px wide JPEGs) it looks the same. The 70-200 f/2.8G on the FTZ matches within 0.14 to 0.21 px median -at 70, 135 and 200 mm. The NIKKOR Z 24-120mm f/4 S is within 0.6 to 1.0 px median from 36 to 120 mm and 1.5 px at 24 -to 28 mm, with the same kind of error toward the edges at the wide end as the Z lenses on the Z 6II. A few 14-24mm -f/2.8G frames had Auto distortion control off, so their JPEGs aren't corrected and match about the same either way. - -I also rendered a few with `lightcraft-cli render` at default settings and measured those against the camera JPEG. -The median error was 0.10 px for the 70-200 at 200 mm and 0.12 px for the Z f sample. The 24-70 was 0.32 px at 70 mm, -on a frame with a 92 px sensor shift, and 8.4 px at 24 mm. The 20 mm came out at 1.3 px. On the Z 8 it was 0.14 px for the 70-200 at 200 mm, 0.45 and 0.68 px for the 24-120 -at 68 and 120 mm, 1.8 px for the Z 20 mm and 3.7 px for the 24-120 at 24 mm. That checks the -center, crop and DNG conversion along with the model itself. - -The F-mount lens on the FTZ matches about as well as I can measure. The native Z lenses still have a smooth error -toward the edges that doesn't depend on the sensor shift and is the same in every frame at a given focal length: about -+22 px at 0.7 to 0.9 half diagonals at 24 mm, +8 px at 33 mm and +3.5 px at 70 mm. It seems the camera applies an -extra correction for Z lenses that isn't in the readable coefficients. NikonNEFInfo `0x000e` looks encrypted and I -didn't try to decode it. Even so, the readable correction takes most of the distortion out. At 24 mm the error at 0.7 -half diagonals goes from −82 px to +25 px, and at 70 mm from about −137 px to under 4 px. - -## What's left out - -Only `NIKON Z 6_2`, `NIKON Z 8` and `NIKON Z f` are corrected, matched exactly. A matching tag on another body doesn't tell us its -pixel pitch or image area, so other bodies can be added once someone checks their files. Only the full-frame 3:2 -image area is corrected, because the stored 21.6 mm radius is the FX half diagonal, so DX and other crops are skipped. -The decoder also skips data it doesn't recognise (another layout, radius or term count, or no correction mode), -values that are clearly wrong (coefficients past ±1, a zoom past ±0.5, a sensor shift over 5% of the frame) and any -mapping that folds back on itself before the farthest corner. - -The tests in `nef_lens` cover the polynomial and zoom, the sensor-shift center and refusing other bodies, layouts -and crops. `nikon_in_file_distortion_becomes_a_warp` runs a synthetic Z 6II NEF through the header and full decode -and a DNG export. `nikon_in_file_distortion_is_limited_to_validated_bodies` checks the corpus: the Z f sample gets the -warp and the D5100, D7000, D7500 and Coolpix B700 samples don't. - -None of my photos, crops or reference images are committed, only the numbers above. +The 2026-11-05 CPU export comparison covered 40 pinned inputs. All six Z 6 and Z 7 exports matched their camera +JPEGs more closely in luminance correlation. The other 34 outputs had identical RGB pixels. The six exposures cover +two scenes with one NIKKOR Z 24-70mm f/4 S at 52 and 56 mm. The extreme corners remain unvalidated. The comparison +records the original binaries, input hashes and per-file results. [Render comparison](raw/nikon-distortion-sweep.tsv) diff --git a/docs/parity-checklist.md b/docs/parity-checklist.md index 84fe76d603e..c2f615b104b 100644 --- a/docs/parity-checklist.md +++ b/docs/parity-checklist.md @@ -214,7 +214,7 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts). | LR-EDIT-DETAIL-AISHARPEN | AI sharpen | OOS | 🚫 | | | | LR-EDIT-DETAIL-HOTPIXELS | Hot pixel removal | P1 | ✅ | `check:detail.nrOutliers`, `crates/raw/src/hotpixel.rs`, `crates/engine/src/files/load.rs` (`load_bytes_now`), `cmd:app.hotPixelLimit` | Lightroom has no control for this. Here a box under Noise Reduction (raws only), on for newly imported raws and off for edits saved before it existed (issue #1345): single photosites far above all their same-colour neighbours are replaced in the mosaic before demosaicing; a point lit across neighbouring photosites (a star, a spark) is kept. A raw with more than 0.2 % of its photosites to replace (real light kept doesn't count) is left unchanged; Settings ▸ Performance ▸ Hot pixel limit sets the share (test `the_hot_pixel_limit_renders_afresh_only_the_photos_that_remove_hot_pixels`). Switching it decodes the raw again (tests `hot_pixel_box_is_on_for_new_raws_only`, `hot_pixel_box_decodes_the_raw_again`) | | LR-EDIT-OPTICS-CA | Remove chromatic aberration | P1 | ✅ | `crates/ui-egui/src/panels/edit.rs` (checkbox), `ctl:optics.caRed`, `ctl:optics.caBlue` | | -| LR-EDIT-OPTICS-PROFILE | Lens profile corrections | P1 | 🟡 | `ctl:optics.profileDistortion`, `ctl:optics.profileVignetting`, `crates/pipeline/src/optics.rs`, `craft-raw`, `craft-raw`, `crates/engine/src/crs.rs` | uses corrections embedded in the file: DNG `WarpRectilinear` / `WarpRectilinear2` (opcode 14, DNG 1.6: degree-14 radial polynomial, valid-radius clamp, reciprocal option, applied in list order with the spec's skip rule for a `WarpRectilinear` after an optional one, so Pixel DNGs' two-stage warp is corrected; up to 3 chained stages, sampled on the CPU because the polynomials need `f64`; issue #635) / `FixVignetteRadial`, and the camera's own distortion correction in Panasonic / Leica RW2 / RWL files (tag `0x0119`, read as the equivalent `WarpRectilinear`; on 79 photos from 13 bodies and 11 lenses the corrected render lines up with the camera JPEG within 0.75 px at 1440 px at the corners, from up to 13 % of the half diagonal uncorrected; issue #256); an imported preset's `LensProfileEnable=0` leaves them on, as Lightroom applies built-in corrections regardless (inferred); Sony ILCE-7RM4A Bayer ARW raw-IFD distortion tables (`0x7037`, 16-sample layout, native 3:2 framing) use the same warp path, enabled for the independently validated ILCE-7RM4A with FE 24–105 and FE 200–600 lenses, ILCE-7M3 (FE 16–35 F4 ZA, FE 28–70, FE 50 F1.8; 26 shots within 0.06–0.44 px median of the camera JPEG at 6000 px, from up to 26 px uncorrected), and ILCE-7CR full-frame Bayer 3:2 files with correction Auto or forced Auto (a separate corrected-radius conversion validated against camera JPEGs with FE 24-50mm, FE 16-25mm and FE 50mm lenses); A7CR Off, APS-C, aspect crops and lossless M/S remain uncorrected; ILCE-7RM6 verified against the camera JPEG on 54 photos with three lenses (`docs/sony-ilce7rm6-lens-corrections.md`); other Sony models remain uncorrected (see `docs/sony-lens-corrections.md`); Nikon NEF distortion from NikonNEFInfo (`0xc7d5`: polynomial, frame-filling zoom and the optical-centre offset left by in-body stabilisation; `craft-raw`, `docs/nikon-lens-corrections.md`) for the Z 6II, Z 8 and Z f, full-frame image area only: F-mount lenses on the FTZ match the camera JPEG within 0.2 px median, Z lenses within 0.5–1.5 px except the 24-70 f/4's wide end, where the camera applies a further correction that is not in the readable data (7 px median at 24 mm, from 16 px / 106 px p95 uncorrected); Fujifilm RAF raw-IFD tables (`0xf00b` distortion, `0xf010` vignetting; `craft-raw`, `docs/fuji-lens-corrections.md`) become a `WarpRectilinear` with the camera's frame-filling zoom and a `FixVignetteRadial` gain for 59 body models with sample files checked against the camera JPEG (the table indexed by the source radius with last knot at the corner; on 67 body/lens combinations the corrected render's radial shape error against the camera JPEG falls from a median of 0.72 % to 0.05 % of the half diagonal, largest 0.42 %, and the vignetting gain of the JPEG tracks the table at a median correlation of 0.987); files whose table scale is not the recorded image's half diagonal (X-T30 III, X-M5, X-T5 crops; X-S20 supported) and six unmatched bodies stay uncorrected; Fujifilm's lateral CA table (`0xf00f`) is real but is not applied, because our demosaic already registers the planes and the stored shift over-corrects; vignetting and lateral CA data of Olympus raws not read yet; Sony ARW shading, lateral CA and distortion tables (raw IFD `0x7031`–`0x7037`, with the encrypted `SR2SubIFD` copies as a checked fallback) are decoded with their camera settings, provenance and framing evidence for every body that records them (`craft-raw`), but only the ILCE-7RM4A, ILCE-7M3, ILCE-7RM6 and ILCE-7CR use the separate distortion conversions above; Sony shading and CA semantics are not validated beyond the ILCE-7RM6's (lateral CA off) (`docs/sony-lens-corrections.md`); Reload from Disk reads the file's lens data for photos catalogued without it and turns the correction on for those still at import settings (issue #314); lens-profile database: a lensfun-format XML database in `LIGHTCRAFT_LENSFUN_DIR` (none is bundled) supplies distortion (poly3 / poly5 / PTLens), TCA and vignetting for lenses it lists (`crates/lensdb`, `crates/engine/src/lens_profiles.rs`, `docs/lens-profiles.md`); raws that name no lens model (Nikon DSLRs: maker-note lens specification only) look it up by a name built from the specification (`24-70mm f/2.8`) and take only a profile named exactly that; lens database: the desktop app offers lensfun's `data/db` once on the first launch (Download / Not Now with its size; Settings ▸ General ▸ Lens profiles downloads it later; nothing is fetched without that click; CC BY-SA 3.0, pinned by commit, size and SHA-256, never bundled; `cmd:lens.downloadDatabase`, `crates/engine/src/lensfun_download.rs`) and downloads it with an activity row, and when it arrives every library raw whose lens it knows is looked up again in the background (`cmd:library.refreshLensProfiles`, `crates/engine/src/cmd/lens_refresh.rs`), as is a photo whose Enable Lens Corrections is ticked; the Optics panel names the loaded profile and its source, or says "No lens profile found for " (`crates/ui-egui/src/lens_db.rs`); presets, Copy / Paste and Sync carry only the switch and amounts, never a profile (`crates/engine/src/tests/lens_refresh.rs`); no source picker or own calibration yet | +| LR-EDIT-OPTICS-PROFILE | Lens profile corrections | P1 | 🟡 | `ctl:optics.profileDistortion`, `ctl:optics.profileVignetting`, `crates/pipeline/src/optics.rs`, `craft-raw`, `crates/engine/src/crs.rs` | uses corrections embedded in the file: DNG `WarpRectilinear` / `WarpRectilinear2` (opcode 14, DNG 1.6: degree-14 radial polynomial, valid-radius clamp, reciprocal option, applied in list order with the spec's skip rule for a `WarpRectilinear` after an optional one, so Pixel DNGs' two-stage warp is corrected; up to 3 chained stages, sampled on the CPU because the polynomials need `f64`; issue #635) / `FixVignetteRadial`, and the camera's own distortion correction in Panasonic / Leica RW2 / RWL files (tag `0x0119`, read as the equivalent `WarpRectilinear`; on 79 photos from 13 bodies and 11 lenses the corrected render lines up with the camera JPEG within 0.75 px at 1440 px at the corners, from up to 13 % of the half diagonal uncorrected; issue #256); an imported preset's `LensProfileEnable=0` leaves them on, as Lightroom applies built-in corrections regardless (inferred); Sony ILCE-7RM4A Bayer ARW raw-IFD distortion tables (`0x7037`, 16-sample layout, native 3:2 framing) use the same warp path, enabled for the independently validated ILCE-7RM4A with FE 24–105 and FE 200–600 lenses, ILCE-7M3 (FE 16–35 F4 ZA, FE 28–70, FE 50 F1.8; 26 shots within 0.06–0.44 px median of the camera JPEG at 6000 px, from up to 26 px uncorrected), and ILCE-7CR full-frame Bayer 3:2 files with correction Auto or forced Auto (a separate corrected-radius conversion validated against camera JPEGs with FE 24-50mm, FE 16-25mm and FE 50mm lenses); A7CR Off, APS-C, aspect crops and lossless M/S remain uncorrected; ILCE-7RM6 verified against the camera JPEG on 54 photos with three lenses (`docs/sony-ilce7rm6-lens-corrections.md`); other Sony models remain uncorrected (see `docs/sony-lens-corrections.md`); Nikon Z 6, Z 7, Z 6II, Z 8 and Z f NEFs use the distortion warp from `craft-raw` for supported full-frame images in modes 1 and 3. The profile switch and amount control the warp in previews and exports. DNG export preserves it. Nikon vignetting remains unfinished ([Nikon corrections](nikon-lens-corrections.md)); Fujifilm RAF raw-IFD tables (`0xf00b` distortion, `0xf010` vignetting; `craft-raw`, `docs/fuji-lens-corrections.md`) become a `WarpRectilinear` with the camera's frame-filling zoom and a `FixVignetteRadial` gain for 59 body models with sample files checked against the camera JPEG (the table indexed by the source radius with last knot at the corner; on 67 body/lens combinations the corrected render's radial shape error against the camera JPEG falls from a median of 0.72 % to 0.05 % of the half diagonal, largest 0.42 %, and the vignetting gain of the JPEG tracks the table at a median correlation of 0.987); files whose table scale is not the recorded image's half diagonal (X-T30 III, X-M5, X-T5 crops; X-S20 supported) and six unmatched bodies stay uncorrected; Fujifilm's lateral CA table (`0xf00f`) is real but is not applied, because our demosaic already registers the planes and the stored shift over-corrects; vignetting and lateral CA data of Olympus raws not read yet; Sony ARW shading, lateral CA and distortion tables (raw IFD `0x7031`–`0x7037`, with the encrypted `SR2SubIFD` copies as a checked fallback) are decoded with their camera settings, provenance and framing evidence for every body that records them (`craft-raw`), but only the ILCE-7RM4A, ILCE-7M3, ILCE-7RM6 and ILCE-7CR use the separate distortion conversions above; Sony shading and CA semantics are not validated beyond the ILCE-7RM6's (lateral CA off) (`docs/sony-lens-corrections.md`); Reload from Disk reads the file's lens data for photos catalogued without it and turns the correction on for those still at import settings (issue #314); lens-profile database: a lensfun-format XML database in `LIGHTCRAFT_LENSFUN_DIR` (none is bundled) supplies distortion (poly3 / poly5 / PTLens), TCA and vignetting for lenses it lists (`crates/lensdb`, `crates/engine/src/lens_profiles.rs`, `docs/lens-profiles.md`); raws that name no lens model (Nikon DSLRs: maker-note lens specification only) look it up by a name built from the specification (`24-70mm f/2.8`) and take only a profile named exactly that; lens database: the desktop app offers lensfun's `data/db` once on the first launch (Download / Not Now with its size; Settings ▸ General ▸ Lens profiles downloads it later; nothing is fetched without that click; CC BY-SA 3.0, pinned by commit, size and SHA-256, never bundled; `cmd:lens.downloadDatabase`, `crates/engine/src/lensfun_download.rs`) and downloads it with an activity row, and when it arrives every library raw whose lens it knows is looked up again in the background (`cmd:library.refreshLensProfiles`, `crates/engine/src/cmd/lens_refresh.rs`), as is a photo whose Enable Lens Corrections is ticked; the Optics panel names the loaded profile and its source, or says "No lens profile found for " (`crates/ui-egui/src/lens_db.rs`); presets, Copy / Paste and Sync carry only the switch and amounts, never a profile (`crates/engine/src/tests/lens_refresh.rs`); no source picker or own calibration yet | ) | LR-EDIT-OPTICS-DEFRINGE | Defringe | P1 | ✅ | `ctl:optics.defringe*` | no fringe eyedropper | | LR-EDIT-OPTICS-MANUAL | Manual distortion / vignetting | P1 | ✅ | `ctl:optics.distortion`, `ctl:optics.vignetting`, `ctl:optics.vignettingMidpoint` | | @@ -810,6 +810,7 @@ Latin stays upright. Advanced Japanese composition remains open. Regression cove | 2026-11-07 | minor | LR-EDIT-EFFECTS-GRAIN, LRC-DEV-PROCESS: process V7 takes film grain to crystal layers ([grain.md](grain.md)); V1 to V6 keep value noise | | 2026-11-06 | minor | LR-EDIT-DETAIL-CNR, LRC-DEV-PROCESS: process V6 takes colour noise reduction to the joint method on linear R−Y / B−Y (issue #815); status unchanged | | 2026-11-05 | minor | LR-BEHAV-RENDER-FIDELITY, LRC-DEV-PROCESS: process V5 rolls a raw's tone curve off into white in stops, past a camera curve's last knot and from half a stop below the generic curve's white point, so raising Exposure no longer turns recorded highlights white (#1632); statuses and counts unchanged | +| 2026-11-05 | minor | LR-EDIT-OPTICS-PROFILE: Nikon Z 6 / Z 7 in-file distortion validated on six exposures of two scenes at 52/56 mm; mode 2 Off rejected; smart previews and cached renders invalidated with distinct audited versions; reconnect rebuilds bypass cached proxies; Nikon vignetting remains unfinished; status unchanged | | 2026-11-05 | minor | LR-LIB-PEOPLE: face boxes another app drew on the photo as stored land on the upright photo (#2674) | | 2026-11-02 | patch | LR-VIEW-SURVEY: the survey picks the column count that shows the most of its photos at their own shapes (four portrait photos side by side on a wide screen, not two by two) and centres an incomplete last row; when a photo leaves or joins, the others glide to their new places in 0.2 s and keep their renders (each photo keeps its render slot); status unchanged | | 2026-11-02 | minor | LRC-DEV-AUTOSYNC (N-A3, note 18): Auto Sync carries white balance as a mode or on each photo's own scale: As Shot and Auto per photo (were the active photo's numbers), a Temp move keeps each photo's tint, the same number on photos of the same scale, a photo of another scale (a JPEG beside a raw) moves by as much; Sync Settings unchanged; status unchanged | diff --git a/docs/raw/coverage-sweep.tsv b/docs/raw/coverage-sweep.tsv index 8e3b2449aeb..711a7fbf628 100644 --- a/docs/raw/coverage-sweep.tsv +++ b/docs/raw/coverage-sweep.tsv @@ -2,6 +2,8 @@ # FNV-1a-64 pins LightCraft's own complete decoded samples, row-major little-endian, including masked borders. # Default renders at up to 1200 px; Pearson r on Lab L* at 200 px after orientation/aspect alignment, threshold 0.6. # Hasselblad PreviewTIFF references check image structure only. Own-matrix DNG tone remains subject to issue #1277. +# 2026-11-05: six Z 6/Z 7 render scores/mean dL refreshed after distortion and camera-look refit; original file/sensor provenance and every other row retained. +# Fresh base/candidate production renders over all 40 rows: docs/raw/nikon-distortion-sweep.tsv (34 RGB outputs unchanged). maker camera id file url sha256 width height cpp samples fnv1a64 luma_r reference notes Apple iPhone 6s Plus 915 coverage-915.dng https://raw.pixls.us/getfile.php/915/nice/Apple%20-%20iPhone%206s%20Plus%20-%2016bit%20%284:3%29.DNG 845fee4f09c832af3728778737f5ae9b99124debb821b6e2066b94aed1daa91c 4032 3024 1 u16 17e4d3c620d593c9 0.9712 embedded JPEG 16bit (4:3); comparison Normal/crop-render; mean dL -10.109 Apple iPhone 7 Plus 939 coverage-939.dng https://raw.pixls.us/getfile.php/939/nice/Apple%20-%20iPhone%207%20Plus%20-%2016bit%20%284:3%29.DNG e8c7ebd8f22f7281d165496b91c8fea8a8e79c8113172fb499e1d66d6045332e 4032 3024 1 u16 d0095a8b553f0f8a 0.9904 embedded JPEG 16bit (4:3); comparison Normal/crop-render; mean dL -11.913 @@ -27,12 +29,12 @@ Hasselblad X2D 100C 6565 coverage-6565.3fr https://raw.pixls.us/getfile.php/6565 Nikon D6 4726 coverage-4726.nef https://raw.pixls.us/getfile.php/4726/nice/Nikon%20-%20D6%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF 3a098e704d0e1af97efc37541b43a37e5b3457d2f4e7828c0d8d9af37332f233 5584 3728 1 u16 272425c271bb0d76 0.9557 embedded JPEG 12bit 12bit compressed (Lossy (type 2)) (3:2); comparison Normal/crop-render; mean dL 0.037 Nikon D6 4720 coverage-4720.nef https://raw.pixls.us/getfile.php/4720/nice/Nikon%20-%20D6%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF 827bcfff8a3cd86278382c353e4542faab52cf12c365540f30753bb4c6fabc0f 5584 3728 1 u16 1d6a9f10a502fb14 0.9581 embedded JPEG 14bit 14bit compressed (Lossless) (3:2); comparison Normal/crop-render; mean dL 0.048 Nikon D6 4721 coverage-4721.nef https://raw.pixls.us/getfile.php/4721/nice/Nikon%20-%20D6%20-%2014bit%2014bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF 081d5dbc1d6c97935020d33ffa486dcaa8d4564cbde280cfadcf26ff61da2838 5584 3728 1 u16 2d6c8af38e4a0ed4 0.9592 embedded JPEG 14bit 14bit compressed (Lossy (type 2)) (3:2); comparison Normal/crop-render; mean dL 0.043 -Nikon Z 6 3584 coverage-3584.nef https://raw.pixls.us/getfile.php/3584/nice/Nikon%20-%20Z%206%20-%2012bit%2012bit%20compressed%20%283:2%29.NEF 3cbd9acf9e9bfd7d0c62c46436109556a101f7535c5fd25f86dad6ea61bf3886 6064 4040 1 u16 a63b22e83bb7c82f 0.8749 embedded JPEG 12bit 12bit compressed (3:2); comparison Normal/crop-render; mean dL 0.327 -Nikon Z 6 3581 coverage-3581.nef https://raw.pixls.us/getfile.php/3581/nice/Nikon%20-%20Z%206%20-%2014bit%2014bit%20compressed%20%283:2%29.NEF 8ca94584578b35a422744c1a610174ce37df0691588edfdecaec3111b3fbbb02 6064 4040 1 u16 1e23d74a11c01a97 0.8752 embedded JPEG 14bit 14bit compressed (3:2); comparison Normal/crop-render; mean dL 0.353 -Nikon Z 6 3582 coverage-3582.nef https://raw.pixls.us/getfile.php/3582/nice/Nikon%20-%20Z%206%20-%2014bit%2014bit%20lossless%20compressed%20%283:2%29.NEF c079345fc93f53a4f0d322f8ddaae505f920c36015f25b58befccaa61db1af31 6064 4040 1 u16 0a0bc73568e125e0 0.8755 embedded JPEG 14bit 14bit lossless compressed (3:2); comparison Normal/crop-render; mean dL 0.464 -Nikon Z 7 2792 coverage-2792.nef https://raw.pixls.us/getfile.php/2792/nice/Nikon%20-%20Z%207%20-%2012bit%2012bit%20compressed%20%283:2%29.NEF c861546fbcf5826d5eb26d223e2143fa32968e89f7edbc5bb10c283ea5461ded 8288 5520 1 u16 c989690cb3e19ef9 0.7417 embedded JPEG 12bit 12bit compressed (3:2); comparison Normal/crop-render; mean dL 2.417 -Nikon Z 7 2789 coverage-2789.nef https://raw.pixls.us/getfile.php/2789/nice/Nikon%20-%20Z%207%20-%2012bit%2012bit%20compressed%20%283:2%29.NEF e54a6c4264bf685214f538036fd9d39088e510b2bfedf288e568f0db1897880e 8288 5520 1 u16 627867ac6a8dd4ad 0.7412 embedded JPEG 12bit 12bit compressed (3:2); comparison Normal/crop-render; mean dL 2.299 -Nikon Z 7 2790 coverage-2790.nef https://raw.pixls.us/getfile.php/2790/nice/Nikon%20-%20Z%207%20-%2012bit%2012bit%20compressed%20%283:2%29.NEF f0e756dbfd00f3b71cb3d8aa5b9e2e1be32f1052a6c4380e09ebc7c5e7748114 8288 5520 1 u16 8a52e6f3d8ff64dd 0.7389 embedded JPEG 12bit 12bit compressed (3:2); comparison Normal/crop-render; mean dL 2.585 +Nikon Z 6 3584 coverage-3584.nef https://raw.pixls.us/getfile.php/3584/nice/Nikon%20-%20Z%206%20-%2012bit%2012bit%20compressed%20%283:2%29.NEF 3cbd9acf9e9bfd7d0c62c46436109556a101f7535c5fd25f86dad6ea61bf3886 6064 4040 1 u16 a63b22e83bb7c82f 0.9964 embedded JPEG 12bit 12bit compressed (3:2); comparison Normal/crop-render; mean dL 0.173; 2026-11-05 production refit with Nikon distortion; outer mean dL -1.609; docs/raw/nikon-distortion-sweep.tsv +Nikon Z 6 3581 coverage-3581.nef https://raw.pixls.us/getfile.php/3581/nice/Nikon%20-%20Z%206%20-%2014bit%2014bit%20compressed%20%283:2%29.NEF 8ca94584578b35a422744c1a610174ce37df0691588edfdecaec3111b3fbbb02 6064 4040 1 u16 1e23d74a11c01a97 0.9964 embedded JPEG 14bit 14bit compressed (3:2); comparison Normal/crop-render; mean dL 0.196; 2026-11-05 production refit with Nikon distortion; outer mean dL -1.611; docs/raw/nikon-distortion-sweep.tsv +Nikon Z 6 3582 coverage-3582.nef https://raw.pixls.us/getfile.php/3582/nice/Nikon%20-%20Z%206%20-%2014bit%2014bit%20lossless%20compressed%20%283:2%29.NEF c079345fc93f53a4f0d322f8ddaae505f920c36015f25b58befccaa61db1af31 6064 4040 1 u16 0a0bc73568e125e0 0.9964 embedded JPEG 14bit 14bit lossless compressed (3:2); comparison Normal/crop-render; mean dL 0.212; 2026-11-05 production refit with Nikon distortion; outer mean dL -1.592; docs/raw/nikon-distortion-sweep.tsv +Nikon Z 7 2792 coverage-2792.nef https://raw.pixls.us/getfile.php/2792/nice/Nikon%20-%20Z%207%20-%2012bit%2012bit%20compressed%20%283:2%29.NEF c861546fbcf5826d5eb26d223e2143fa32968e89f7edbc5bb10c283ea5461ded 8288 5520 1 u16 c989690cb3e19ef9 0.9914 embedded JPEG 12bit 12bit compressed (3:2); comparison Normal/crop-render; mean dL 1.215; 2026-11-05 production refit with Nikon distortion; outer mean dL -2.068; docs/raw/nikon-distortion-sweep.tsv +Nikon Z 7 2789 coverage-2789.nef https://raw.pixls.us/getfile.php/2789/nice/Nikon%20-%20Z%207%20-%2012bit%2012bit%20compressed%20%283:2%29.NEF e54a6c4264bf685214f538036fd9d39088e510b2bfedf288e568f0db1897880e 8288 5520 1 u16 627867ac6a8dd4ad 0.9910 embedded JPEG 12bit 12bit compressed (3:2); comparison Normal/crop-render; mean dL 1.271; 2026-11-05 production refit with Nikon distortion; outer mean dL -2.028; docs/raw/nikon-distortion-sweep.tsv +Nikon Z 7 2790 coverage-2790.nef https://raw.pixls.us/getfile.php/2790/nice/Nikon%20-%20Z%207%20-%2012bit%2012bit%20compressed%20%283:2%29.NEF f0e756dbfd00f3b71cb3d8aa5b9e2e1be32f1052a6c4380e09ebc7c5e7748114 8288 5520 1 u16 8a52e6f3d8ff64dd 0.9910 embedded JPEG 12bit 12bit compressed (3:2); comparison Normal/crop-render; mean dL 1.251; 2026-11-05 production refit with Nikon distortion; outer mean dL -2.073; docs/raw/nikon-distortion-sweep.tsv Nikon Z 8 6617 coverage-6617.nef https://raw.pixls.us/getfile.php/6617/nice/Nikon%20-%20Z%208%20-%208bit%208bit%20compressed%20%283:2%29.NEF c13a8675294456b9c979e6c1e556951654f35377b2870af2874bfb556f21ce40 8280 5520 1 u16 716e1158bab28b76 0.9563 embedded JPEG 8bit 8bit compressed (3:2); comparison Normal/crop-render; mean dL 2.044 Parrot Anafi 2912 coverage-2912.dng https://raw.pixls.us/getfile.php/2912/nice/Parrot%20-%20Anafi%20-%2016bit%20%284:3%29.DNG a257a296047ff2d396109fd2e6947fa36aa7986695b6815f83979d59e98a84e6 5344 4016 1 u16 07a188c932a25a31 0.9895 embedded JPEG 16bit (4:3); comparison Normal/crop-render; mean dL -3.924 Samsung Galaxy S21 Ultra Rear Main Camera 6728 coverage-6728.dng https://raw.pixls.us/getfile.php/6728/nice/Samsung%20-%20Galaxy%20S21%20Ultra%20-%204:3.dng 5baeb5f0c4a125647df03b82c2d38b0f02784393bd39eff1a5b23d8f5308dc5e 4000 3000 3 u16 16c5d6faed83390d 0.9912 embedded JPEG 4:3; comparison Rotate180/crop-render; mean dL -10.83 diff --git a/docs/raw/nikon-distortion-sweep.tsv b/docs/raw/nikon-distortion-sweep.tsv new file mode 100644 index 00000000000..f52a3610b1c --- /dev/null +++ b/docs/raw/nikon-distortion-sweep.tsv @@ -0,0 +1,46 @@ +# 2026-11-05 LR-EDIT-OPTICS-PROFILE production comparison; source behavior before/after Z 6 / Z 7 recognition. +# Base CLI SHA-256 e301181ff094a92827c2bc9ff5c87e1d2e6ea422bbff05a6fbc228dc58b17773; candidate CLI SHA-256 52fe2940ef26a0b3e3ca96c9d724dc887d0decb6487f036b369bd262015510bc +# CLI PNG 1200px; CPU; 6 Rayon threads; no lens database; largest embedded reference; recorded rotation; center crop-render; Lab L* 200px; outer rho>=0.75; pixel SHA256 includes WxH:RGB: and row-major RGB bytes; same frozen camera references for both runs. +# File and complete sensor hashes remain pinned in coverage-sweep.tsv. PreviewTIFF references are structural checks. +# 40 rows measured; six Z 6/Z 7 RGB outputs changed; other 34 dimensions and RGB bytes identical. +file file_sha256 base_rgb_sha256 candidate_rgb_sha256 reference_rgb_sha256 base_r candidate_r base_mean_dL candidate_mean_dL base_outer_mean_dL candidate_outer_mean_dL base_outer_mae_dL candidate_outer_mae_dL pixels_changed +coverage-915.dng 845fee4f09c832af3728778737f5ae9b99124debb821b6e2066b94aed1daa91c 7a209e6abf2f559079971fb5415eb1cfe114c3bbdee5eed1cc5b699e9e21dca5 7a209e6abf2f559079971fb5415eb1cfe114c3bbdee5eed1cc5b699e9e21dca5 025750081518c08900bae38bb90269981034b9da292b08899b0a689b11c38482 0.994525 0.994525 0.023243 0.023243 1.349133 1.349133 1.940318 1.940318 false +coverage-939.dng e8c7ebd8f22f7281d165496b91c8fea8a8e79c8113172fb499e1d66d6045332e dcce0cebb566f50a1abbf61ff6907771f14bf0ed7200e10b9d446129df10e8a4 dcce0cebb566f50a1abbf61ff6907771f14bf0ed7200e10b9d446129df10e8a4 68a7b1fc5aa21fd4ae6734779b4f39ed3e0512a7e93b82df30ebf5382968a599 0.992590 0.992590 0.064747 0.064747 0.874884 0.874884 2.152766 2.152766 false +coverage-3372.dng 50bc64ee8cfbbfb6c0531e29ab428ff985506a16fe2d1d2e74656f21b54505f6 a5cfa191df69bc333395e6850ebd38a0a01bfa58afad2731302d60e8a7838c52 a5cfa191df69bc333395e6850ebd38a0a01bfa58afad2731302d60e8a7838c52 b8f06d84b64cb320ded02fd2d1bf1277d5c21ef189633e7b591fb688d2f92e9c 0.990041 0.990041 -0.013535 -0.013535 -2.592615 -2.592615 2.761213 2.761213 false +coverage-3009.dng 7afecae0db80d832941eeeb3c0eb2dc03f5696637b6e78b3c592e8c002dce4ec 108f80dc0fad11fc8acd09bf7deaa7bfddd37deb6866d4fbcfd7b4b6a3e7f12d 108f80dc0fad11fc8acd09bf7deaa7bfddd37deb6866d4fbcfd7b4b6a3e7f12d 9bb7d66e80d1d1c455ad93b9d6985ffc737d4ced5ee9b3f21bdf0fd6e626e4df 0.986272 0.986272 0.074410 0.074410 0.427961 0.427961 2.322285 2.322285 false +coverage-5140.dng dbe98cb202f884ff11e0144899613b26d33cf9cddd9f1a62226f4352397f18e4 6d8f9f3156ae3b963a58f1fb4e660183f1c0c63b5b6f36e2917c96d5c15c71cd 6d8f9f3156ae3b963a58f1fb4e660183f1c0c63b5b6f36e2917c96d5c15c71cd ad4f9d1ada942aaaa9034ab49571f7c041fca3cf1e38ef6cf026ce42c120ee5e 0.867378 0.867378 0.412393 0.412393 1.767910 1.767910 13.341056 13.341056 false +coverage-8041.dng 901b7970f02f7197c782f111363feef02108f75811342d8cc4a2b66757bb7af0 5f8a433cd375e4043fb4bff8dd67dada28dc9565edd12c5104d3b14b02cd73dc 5f8a433cd375e4043fb4bff8dd67dada28dc9565edd12c5104d3b14b02cd73dc 3855315af444ab977dd003bfacfa711ed390ae6025ceb6d2af20c3dcfdff616b 0.684543 0.684543 2.559364 2.559364 0.909967 0.909967 14.285771 14.285771 false +coverage-4785.dng 21a49e63966f82391ca1188c7559c3acc01a35a89a70194fda4bf44cbd64a851 893e9cfe474a50b982c1fa23bdb0c1374ab5d967293a981f9d2b84fd3d22d28c 893e9cfe474a50b982c1fa23bdb0c1374ab5d967293a981f9d2b84fd3d22d28c 1d1ed98a0aad10449d1a1f2ddcf3125b3c504899c06cecbf32d6cf274db1e054 0.945065 0.945065 0.050662 0.050662 5.515994 5.515994 5.622163 5.622163 false +coverage-4898.dng fb4f294e12cab7b507fd0b7c07f24e5d13e7c0dd127b534ce12c48d644c9363d 8db8d6d620bdb3b6c7cc2b235e51749c4da540f77ca862fa8c193daea37fa70c 8db8d6d620bdb3b6c7cc2b235e51749c4da540f77ca862fa8c193daea37fa70c cb615ea124f3c5f9bc629d452447d1c4d14612b1636ed160c9a06431467ed9ab 0.983566 0.983566 0.060258 0.060258 2.427187 2.427187 2.930057 2.930057 false +coverage-3502.dng 0c03a6c93b4b8593cd0e4426166e6389710007238b82eb23861ef191322f0c54 b3c974f763f8e7777b6427e75a31fef742c0f427b1706a3da891a567b1e67766 b3c974f763f8e7777b6427e75a31fef742c0f427b1706a3da891a567b1e67766 1c864a9158ba114a7d3de6f369b861ff9bf9f10a4442ab1b1c1b18423b12ced3 0.947816 0.947816 0.570854 0.570854 0.216759 0.216759 3.516492 3.516492 false +coverage-4176.dng 11b38186ee3455376291bcdb3049728a3f9dcd94b9e82ff76855d9f3430e44be 8b2ce53b166c811fe88afed2e3fa110216f3ad8e565fe2e58ae7f701e7f7286b 8b2ce53b166c811fe88afed2e3fa110216f3ad8e565fe2e58ae7f701e7f7286b 84e23a04f63c5e7e43c9d7cb6b11814007c9419579a9595554dbce328687a461 0.968793 0.968793 1.163139 1.163139 1.424981 1.424981 5.727719 5.727719 false +coverage-5961.dng 3a859e917a91698a3e15ce3b3721a48a1fb1296873e0697d3bf7c2793297200d 7e6b2644160ee45f2c3da2a088d0e7e0554808be6582bad72390a893c2b0d4ac 7e6b2644160ee45f2c3da2a088d0e7e0554808be6582bad72390a893c2b0d4ac 31163985c5c6403dd75c5cadf7df512cbec56cc89045cf4b7bd8fa5d9b27b7fb 0.936571 0.936571 0.940841 0.940841 -0.299343 -0.299343 3.948523 3.948523 false +coverage-7751.dng 45420c595401547cca950ae58d552bc82b32d31ce1d58c082df33004016197f5 ee7ae0cf2fd093730a6e815f3456310f2efd1473c31fce8f1c47982306d710a6 ee7ae0cf2fd093730a6e815f3456310f2efd1473c31fce8f1c47982306d710a6 5fb260934ea749b272a8adb377c463fc00f1b9a4ac2018269b28117cc1c73ba4 0.967367 0.967367 -4.971174 -4.971174 -5.999716 -5.999716 6.089165 6.089165 false +coverage-7217.3fr e27ff177519298fe7bae64506b975190789dc0e6ad70bea58be7c78fd094eae0 35323b43a62a63645d6cf36fd4615f174d1771280227786c2abf3413aa0a3b1a 35323b43a62a63645d6cf36fd4615f174d1771280227786c2abf3413aa0a3b1a 54f4debd2642c16e61f59cd5192ddb103e3950f4fcde1dc84b28f193a35212d6 0.998485 0.998485 -14.212307 -14.212307 -14.035583 -14.035583 14.221253 14.221253 false +coverage-7218.fff c8d78912ae725a59acff42a4b4731350bbddd4a600423f319579261bd41da932 fda47ceeaec659e22fd1b7574dceb0f8bc0fa04ab13a9b603636130a49ac8e63 fda47ceeaec659e22fd1b7574dceb0f8bc0fa04ab13a9b603636130a49ac8e63 c0f369382f80118d5104e634970276b7dabf59198884284e75f61f8f09cfcb87 0.944791 0.944791 28.791157 28.791157 29.071434 29.071434 29.071434 29.071434 false +coverage-1640.fff 209d464e13702de5f4fdb830ac26ac140c98a8d0dc3e81c5ba61d93677330832 becd65d57b8d510029753e610bf16a9cbbee60ec4ca89188c13c78ac00afdb88 becd65d57b8d510029753e610bf16a9cbbee60ec4ca89188c13c78ac00afdb88 0fbdbebafe94faa3ee33c298dbc615ed74c3a468dfbbcb90083acf069a3be7d3 0.958222 0.958222 29.453605 29.453605 32.723201 32.723201 32.723201 32.723201 false +coverage-1639.fff 1aad9319fcbab81b851a74c3eeaa2a07fc5013bf2c4e272fd31d6419b6b9adb0 a1f8d7ce8ff254c3d0b23be4a8462a42451169b9fb84ea53cfbe6fd763cd3650 a1f8d7ce8ff254c3d0b23be4a8462a42451169b9fb84ea53cfbe6fd763cd3650 5513970776b1ea5c16963cb9e046ac60ec03da6123a5e33fa6445feda3555fa6 0.946932 0.946932 28.904472 28.904472 32.967622 32.967622 32.967622 32.967622 false +coverage-2058.3fr 395acb2c706dc10270c58ec261e42a5e36f6ac8c39d2a767e86e83648aa318a3 fed7a13cba1cd872b5586d6e682c5f70b6287fbd676bbbf90a110141e4084626 fed7a13cba1cd872b5586d6e682c5f70b6287fbd676bbbf90a110141e4084626 a73ed6b0caee244174f8bc1795b841e864b4086a246ce036613cc2903e9b91a1 0.977350 0.977350 -9.085600 -9.085600 -8.681743 -8.681743 9.397649 9.397649 false +coverage-3874.fff 8c2451b3478fb529b4e9bd51ed3267999ce26eb1fcb5c3b93c3ae7bc56267794 8afa3cd9159493673f3bce8173874d9d6e4c2b1deadef937abee40adfcccdddd 8afa3cd9159493673f3bce8173874d9d6e4c2b1deadef937abee40adfcccdddd 73822bd3d0f981beb0a3ec43b97d78b29d2a0f80095ee96f55cf9d2c0b12090a 0.943996 0.943996 22.447115 22.447115 22.000699 22.000699 22.000699 22.000699 false +coverage-3941.3fr 809d498263d6f07cbaa4b9a5be97933057b4ab21e7243bb7afbe3862f3b48b47 b2df3a195c3a0a049fdc1662ec16d5de09dac0c68b318fc5be44c5a83017d420 b2df3a195c3a0a049fdc1662ec16d5de09dac0c68b318fc5be44c5a83017d420 e18327d8683f48c59e88d9fd8471b8b0cdb0b52881b060b5faa5bd94757d2e89 0.998565 0.998565 -11.203822 -11.203822 -7.766498 -7.766498 8.314481 8.314481 false +coverage-6568.fff 44977fdaa3063eacbb2ac416dfb531bb4e3b96f3745d073dc49fb1ebcd78bedc 9d100472a075cf365d36c31518828645d44ac9f13fb8056eb173101cf639b410 9d100472a075cf365d36c31518828645d44ac9f13fb8056eb173101cf639b410 67c0c565242275455c393996145dfde6a6f007b095534be6b6ec07871ad458d1 0.919667 0.919667 26.519504 26.519504 23.618780 23.618780 23.618780 23.618780 false +coverage-6565.3fr dcc5a4abe3498e6f25e89bb491995fd12c3b669d9277c71b45b49210d3e56280 d93986c1ff36c4f7d25e9648b8274a84192fd12d3861da4bfabfabd235ac80a8 d93986c1ff36c4f7d25e9648b8274a84192fd12d3861da4bfabfabd235ac80a8 9d7c121e4c9bea513e8169c02bef5edcf4f7998d4e5a9411256a945a63975f82 0.996867 0.996867 -2.886130 -2.886130 -1.776552 -1.776552 6.132961 6.132961 false +coverage-4726.nef 3a098e704d0e1af97efc37541b43a37e5b3457d2f4e7828c0d8d9af37332f233 8d098d03b41f5fde10fde49ebb732a498074920d173ef9ac898afb7fa64d56c5 8d098d03b41f5fde10fde49ebb732a498074920d173ef9ac898afb7fa64d56c5 2b2a2b7f870d44f0292a33e38073eed219c102c92c40c48ae87530d9dfae2858 0.956144 0.956144 0.064876 0.064876 -2.685693 -2.685693 2.694906 2.694906 false +coverage-4720.nef 827bcfff8a3cd86278382c353e4542faab52cf12c365540f30753bb4c6fabc0f ffca536b76f824932a946718d5bb6bb2ce4076c970b4ab28f6fdc71c3d38dc31 ffca536b76f824932a946718d5bb6bb2ce4076c970b4ab28f6fdc71c3d38dc31 da9c3a96b7d1a0a5e9ac7c5570210c97485912d7c110ef3edfb427a6da56b4e0 0.959190 0.959190 0.056993 0.056993 -2.625904 -2.625904 2.630247 2.630247 false +coverage-4721.nef 081d5dbc1d6c97935020d33ffa486dcaa8d4564cbde280cfadcf26ff61da2838 b43c903ddfd3a1cd3e5cecaf25f8c4b2474ac55c561246af1006d1168e97e9ad b43c903ddfd3a1cd3e5cecaf25f8c4b2474ac55c561246af1006d1168e97e9ad 462a9b1967e75b8bd82e758a2ec48b3cff799f471b301a212107d2e3f0b41898 0.960036 0.960036 0.061219 0.061219 -2.706551 -2.706551 2.732903 2.732903 false +coverage-3584.nef 3cbd9acf9e9bfd7d0c62c46436109556a101f7535c5fd25f86dad6ea61bf3886 17c42ee6eba1f8d24eb72eae1a44ab93cf4f7efb4017840f72f43ac96ef105fe c4424647f0b6aa60d3e7af2f1adfaab7502b13946494a2e756e316181ce6bd83 29c387d28579714156eb5fbd3830b51ae629dd7f77381717a873c36edfe059ba 0.876903 0.996429 0.298957 0.173163 -3.478649 -1.608575 5.760813 1.807430 true +coverage-3581.nef 8ca94584578b35a422744c1a610174ce37df0691588edfdecaec3111b3fbbb02 9ce7b87b17a50d5bafbfa45629c89429ed4b86c80e7fd77f19854e3d21cd0f47 d2754186bee92f268fad485f776243b4f7b9329312db73c35dd97105dc0ae776 db8f4ab93ef278e3493942e28755bdd63fbba4fd6720589bf14c898a6af3804f 0.877158 0.996450 0.319627 0.196280 -3.470312 -1.610507 5.803838 1.813292 true +coverage-3582.nef c079345fc93f53a4f0d322f8ddaae505f920c36015f25b58befccaa61db1af31 5155b938b8b7d32bc6d14a1541115cc5336e396d3f309a2a41f76282a6bbac4a ed4916dbfd4c4506890c0b38517b0b332e583d26a5a535a3a3311e343ead36a2 6b1f9eca41d54dae3e1376a895edbb1148b9a4d243b711ef2ac1e5d289db843a 0.877491 0.996441 0.430047 0.212496 -3.431174 -1.591756 5.768369 1.802145 true +coverage-2792.nef c861546fbcf5826d5eb26d223e2143fa32968e89f7edbc5bb10c283ea5461ded b43d6cff9edef6b88a7195b74b2a77bf414c47aaa1a5ab7adfeb8dfa77b50fac a54d97b59794bfa3cf4addbd478e94d9755f97e1870ff24542c258bf3d9ec3cf 4671ff7911e5dc87ca8c6cd0be1243bf8e7bca0b0a876b84af1cb1b4827ec8a4 0.749706 0.991416 1.923504 1.214512 -2.982260 -2.068134 6.521320 2.357019 true +coverage-2789.nef e54a6c4264bf685214f538036fd9d39088e510b2bfedf288e568f0db1897880e 0c56854e80f00b1cf9d975573b7b0bea06afe7b831560ceadca7402f457298c5 e517bca9c4946627aaa46cc28098563ca23557baf423a941396399d853c57f90 c7477c44dae576b978f8dbefa14f04347a5f4cee48a0f1c1f5f986bf8ff62c94 0.748283 0.990996 2.187907 1.271131 -2.880651 -2.028002 6.456293 2.332397 true +coverage-2790.nef f0e756dbfd00f3b71cb3d8aa5b9e2e1be32f1052a6c4380e09ebc7c5e7748114 61af749d6152e9b3540b4a0f7e2e288e350d0b448903aa1fe3001e6e0dc26572 e2640a31f3e7d1deb8eed81387b62a8dce11f397138c8910cd26fdf37375adb0 3e2a0bf55ff59efcf72cd561ae8de0970e88f52190255214265778132146e044 0.748047 0.990970 2.239679 1.251089 -2.868331 -2.072744 6.472221 2.357066 true +coverage-6617.nef c13a8675294456b9c979e6c1e556951654f35377b2870af2874bfb556f21ce40 4f0756ffcae51fd896c73ee019d62cbd6a1a7e39b37c640c5e7bb89b732ac988 4f0756ffcae51fd896c73ee019d62cbd6a1a7e39b37c640c5e7bb89b732ac988 279cabf15e6ad15482453bf5d25117ba9a7b0c3fd85988939d429e12409f471a 0.996314 0.996314 1.493065 1.493065 -0.110194 -0.110194 1.171614 1.171614 false +coverage-2912.dng a257a296047ff2d396109fd2e6947fa36aa7986695b6815f83979d59e98a84e6 519395f487c52edaf368fb3f1a925372085abca790e4b07530edad1ca69ddcf2 519395f487c52edaf368fb3f1a925372085abca790e4b07530edad1ca69ddcf2 1f006eef44b6949f3669cd37b886f3ac0c44be0563f0184b78d6d136abee86dc 0.989430 0.989430 -3.942714 -3.942714 -5.085409 -5.085409 11.126564 11.126564 false +coverage-6728.dng 5baeb5f0c4a125647df03b82c2d38b0f02784393bd39eff1a5b23d8f5308dc5e 75ee31bf22b15c881961517fb73e645b628c48ecbd1bd7a6d2b8e5c34a52e9fe 75ee31bf22b15c881961517fb73e645b628c48ecbd1bd7a6d2b8e5c34a52e9fe 003dc9b81080222b8e6145afeac5bad87988cc1c6fb35a16a7f7b96da3eb8692 0.991086 0.991086 -10.932121 -10.932121 -9.837630 -9.837630 11.280033 11.280033 false +coverage-6261.dng 53e7f83a94c965495ba32d3ea6021ef08ed02244ce64d111d1329bbd01fd5581 1f4032f72781100b065f83500575218aa161fc9e0ae26e2f54fe62734f8f5e53 1f4032f72781100b065f83500575218aa161fc9e0ae26e2f54fe62734f8f5e53 0edff2c82bf144274cdbddd93a9acbb9a9719b62cd71fc78a2da204dd783f9a9 0.971932 0.971932 -20.542994 -20.542994 -22.129382 -22.129382 22.141729 22.141729 false +coverage-6697.dng 1c04574f32b5a139922f075291c52018b89d9981ee155a16958a231c1fdbb067 01e299e62d05538eaff576b5e724d9621d20123cbeef23518616d0e0e6de4e90 01e299e62d05538eaff576b5e724d9621d20123cbeef23518616d0e0e6de4e90 e40bf6a52bee99f9cdc81df6271b8f684895e685668f09320d4ac5d8c3fe9485 0.940795 0.940795 -6.648589 -6.648589 -6.678374 -6.678374 8.360162 8.360162 false +coverage-1297.dng 843617c8b572320b7badfb4ac2eda19479f5804a1dabb909c861bde23ed30561 106b451517956a4f3d21e1672dddc5b79bd63bc3a72e7441a258da1202dba5ec 106b451517956a4f3d21e1672dddc5b79bd63bc3a72e7441a258da1202dba5ec 355198c8da6c76081090e58aebd69a8b667e4fee6d031517305a736c468d9512 0.960372 0.960372 5.595697 5.595697 3.799795 3.799795 9.538383 9.538383 false +coverage-2645.dng 6abdd353094964eaadddf69bba3a0d551ecce1bc0ed013a434691df4f64dcbf2 cbf2aadcbea4d5cdb0331082f9e4e2408710c0ae7474e0021908dd61a4dd8a83 cbf2aadcbea4d5cdb0331082f9e4e2408710c0ae7474e0021908dd61a4dd8a83 3f50665d67fdc25aa7414f682b1e72d6a43f5c7d9b4fd49254589ec173e49c73 0.994782 0.994782 -4.198611 -4.198611 -6.485769 -6.485769 10.362222 10.362222 false +coverage-2310.dng 3cf5da4331d062bc6b31e0e8f5b7ff2cd21107de4262d79a2667f670516e8e8c abe8402607c962d21af883a9c997aae23cde0f1de48f918019437c3665a15ece abe8402607c962d21af883a9c997aae23cde0f1de48f918019437c3665a15ece 9a5a89387b45c8111b372a2c4950b7c91458182defa7fee8b70d650467e1fab2 0.989490 0.989490 2.369332 2.369332 -0.560246 -0.560246 12.247120 12.247120 false +coverage-7273.dng 0844bcf23a49e21b5c2f8489de55ce38fb7b594e3ed337d6b9af2dd9341354e9 d7fd47cfba2b95497754f59dbdb59d22c7fb8fe6aebdbea852761ef2a5e2af7f d7fd47cfba2b95497754f59dbdb59d22c7fb8fe6aebdbea852761ef2a5e2af7f 088b5ca56d6a6ce6fd3b4e7ae0eaa4c5a95932965b44350bf4da2f52b7b3a23b 0.974843 0.974843 7.036398 7.036398 8.006018 8.006018 8.044602 8.044602 false +coverage-6949.dng 8e7229f28be30bfa45289940eac04194af2b3474f6db286e4fa4070c145a0a70 ae75f7d9b6da146cc2a0803406a2407c0cc570d6e0e9eceb33c418ac079384fc ae75f7d9b6da146cc2a0803406a2407c0cc570d6e0e9eceb33c418ac079384fc b1e55b1ab3b856b21adb83908553c5df37c12680b8e8e3b5dc4b5db7612ace24 0.999881 0.999881 1.579304 1.579304 1.452400 1.452400 1.452400 1.452400 false