You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dfd29a8
Browse filesBrowse the repository at this point in the historyBrowse files
//! taken in Kelvin order ([`KelvinPresets::from_unordered`]). On the PowerShot G1 X Mark III's nine settings the
14
14
//! curve reads the as-shot levels within 5 % of the camera's own `ColorTempAsShot`.
15
15
//!
16
+
//! Canon CR3s list the same presets in the `ColorData` of the maker note (layout by `ColorDataVersion`, see
17
+
//! `vendor::cr3`). Panasonic and Leica RW2s store, in tag `0x0027`, neutral multipliers for named lights (D55 and
18
+
//! studio tungsten, which are 5500 K and 3200 K: `vendor::rw2`), and Pentax PEFs a table of presets
19
+
//! keyed by temperature in maker note tag `0x0221` (`vendor::pef`); each gives the same
20
+
//! curve, the two-point ones through [`KelvinPresets::from_neutral_lights`]. All tag numbers were found with a
21
+
//! black-box `exiftool` run; the layouts were read from the bytes of the sample files.
22
+
//!
16
23
//! The model, in `(ln R/G, ln B/G)` of the multipliers ([`KelvinPresets::temp_tint`]):
17
24
//! - The presets (three or more) are joined piecewise linearly, with mired linear along each segment and the end segments
18
25
//! extended. On every Sony body measured, mired is nearly linear in arc length along the whole curve (2500 K to
@@ -54,9 +61,72 @@ const MAX_TINT: f64 = 150.0;
54
61
55
62
/// Models other than Sony's whose white balance is edited in Kelvin through their presets, as (brand, Exif model
56
63
/// without the brand), each checked to carry them: the Canon PowerShot G1 X Mark III on a reporter's nine photos, one
57
-
/// per white-balance setting (issue #157 of a downstream fork). A camera with measured matrices (`crate::spectral`)
58
-
/// is read through those instead.
59
-
constMODELS:&[(&str,&str)] = &[("CANON","PowerShot G1 X Mark III")];
64
+
/// per white-balance setting (issue #157 of a downstream fork); the other Canon bodies listed here when every sample
65
+
/// file of the model (CR2 or CR3) stored a ColorData version with the presets (upstream #2527). A camera with measured matrices (`crate::spectral`) is read through those instead.
66
+
constMODELS:&[(&str,&str)] = &[
67
+
("CANON","PowerShot G1 X Mark III"),
68
+
("CANON","EOS 1000D"),
69
+
("CANON","EOS 1100D"),
70
+
("CANON","EOS 1200D"),
71
+
("CANON","EOS 1300D"),
72
+
("CANON","EOS 2000D"),
73
+
("CANON","EOS 30D"),
74
+
("CANON","EOS 4000D"),
75
+
("CANON","EOS 450D"),
76
+
("CANON","EOS 500D"),
77
+
("CANON","EOS 550D"),
78
+
("CANON","EOS 650D"),
79
+
("CANON","EOS 700D"),
80
+
("CANON","EOS 750D"),
81
+
("CANON","EOS 760D"),
82
+
("CANON","EOS 77D"),
83
+
("CANON","EOS 800D"),
84
+
("CANON","EOS 850D"),
85
+
("CANON","EOS 90D"),
86
+
("CANON","EOS DIGITAL REBEL XS"),
87
+
("CANON","EOS DIGITAL REBEL XSi"),
88
+
("CANON","EOS KISS M"),
89
+
("CANON","EOS Kiss F"),
90
+
("CANON","EOS Kiss X3"),
91
+
("CANON","EOS Kiss X4"),
92
+
("CANON","EOS Kiss X80"),
93
+
("CANON","EOS M100"),
94
+
("CANON","EOS M2"),
95
+
("CANON","EOS M200"),
96
+
("CANON","EOS M5"),
97
+
("CANON","EOS M50"),
98
+
("CANON","EOS M50m2"),
99
+
("CANON","EOS M6"),
100
+
("CANON","EOS M6 Mark II"),
101
+
("CANON","EOS R100"),
102
+
("CANON","EOS R3"),
103
+
("CANON","EOS R50 V"),
104
+
("CANON","EOS R6 Mark III"),
105
+
("CANON","EOS R7"),
106
+
("CANON","EOS REBEL T1i"),
107
+
("CANON","EOS REBEL T2i"),
108
+
("CANON","EOS REBEL T3"),
109
+
("CANON","EOS REBEL T4i"),
110
+
("CANON","EOS REBEL T5"),
111
+
("CANON","EOS REBEL T5i"),
112
+
("CANON","EOS REBEL T7i"),
113
+
("CANON","EOS Rebel T100"),
114
+
("CANON","EOS Rebel T6"),
115
+
("CANON","EOS Rebel T6i"),
116
+
("CANON","EOS Rebel T6s"),
117
+
("CANON","EOS Rebel T7"),
118
+
("CANON","EOS Rebel T7i"),
119
+
("CANON","EOS-1D Mark II N"),
120
+
("CANON","EOS-1D Mark III"),
121
+
("CANON","EOS-1D X"),
122
+
("CANON","EOS-1D X Mark III"),
123
+
("CANON","PowerShot G5 X Mark II"),
124
+
("CANON","PowerShot G7 X Mark II"),
125
+
("CANON","PowerShot G7 X Mark III"),
126
+
("CANON","PowerShot G9 X Mark II"),
127
+
("CANON","PowerShot SX70 HS"),
128
+
("CANON","PowerShot V1"),
129
+
];
60
130
61
131
/// Fujifilm's X-Trans III bodies, whose raws carry the camera's own neutral multipliers for Illuminant A and D65
62
132
/// (`vendor::raf`, tag `0xf00c`; see [`KelvinPresets::from_neutral_pair`]): checked on the files of each (X-T20,
/// Whether a raw of this Exif make and model is edited in Kelvin through its presets: a Sony body other than the
76
152
/// three without them ([`WITHOUT_PRESETS`]); without a make, a model named as Sony names its bodies; or one of
77
-
/// [`MODELS`]; a Fujifilm X-Trans III body ([`FUJI_MODELS`], Fujifilm make or none); or a body with built-in presets ([`crate::kelvin_builtin`]). A camera with
153
+
/// [`MODELS`]; a Fujifilm X-Trans III body ([`FUJI_MODELS`], Fujifilm make or none); a body of one of [`BRANDS`]; or a body with built-in presets ([`crate::kelvin_builtin`]). A camera with
78
154
/// colour matrices of its own or measured comes first (see [`crate::spectral::find`]): the catalog and the file's
0 commit comments