Files
lightcraft/crates/lensdb/Cargo.toml
Andrew FrahnandClaude Opus 5.5 00ea386f7f lensdb: lens distortion (poly3/poly5/PTLens), TCA (linear/poly3) and vignetting (pa) profiles, lensfun-format loader
Profiles are interpolated in focal length (vignetting also in aperture and
focus distance), scaled by crop factor, and converted by least squares to the
DNG WarpRectilinear / FixVignetteRadial polynomials the pipeline already
applies. The lensfun database (CC-BY-SA) is only read from a directory the
user supplies; nothing is bundled.

Sources: lensfun's published database format and lens calibration
documentation (no lensfun code read), PanoTools wiki (a, b, c distortion
model), DNG specification 1.6 (WarpRectilinear, FixVignetteRadial);
interpolation and fitting: own design.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-11 19:30:18 +11:00

15 lines
385 B
TOML

[package]
name = "lightcraft-lensdb"
version.workspace = true
edition.workspace = true
license.workspace = true
description = "Lens correction profiles: distortion, TCA and vignetting models, lensfun-format database loader (L2)"
[lints]
workspace = true
[dependencies]
lightcraft-develop = { workspace = true }
lightcraft-geom = { workspace = true }
quick-xml = { workspace = true }