Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit e964336

Browse files
committed
Added CIE D55 illuminant
1 parent c529754 commit e964336

File tree

3 files changed

+139
-2
lines changed

3 files changed

+139
-2
lines changed

ColorSharp/ColorSharp.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
<Compile Include="src\Illuminants\CIE_B.cs" />
8585
<Compile Include="src\Illuminants\CIE_C.cs" />
8686
<Compile Include="src\Illuminants\CIE_D50.cs" />
87+
<Compile Include="src\Illuminants\CIE_D55.cs" />
8788
</ItemGroup>
8889
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
8990
<ItemGroup>

ColorSharp/src/Illuminants/CIE_D50.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace Illuminants
3737
{
3838
/**
3939
* <summary>
40-
* CIE Standard Illuminant D50. Constructed to represent natural daylight. CCT of 5003 K.
40+
* CIE Standard Illuminant D50. Constructed to represent natural daylight at the horizon. CCT of 5003 K.
4141
* </summary>
4242
*/
4343
public static class CIE_D50
@@ -127,7 +127,7 @@ public static class CIE_D50
127127
70.30,
128128
82.90,
129129
80.60,
130-
78.30,
130+
78.30
131131
}
132132
);
133133
}

ColorSharp/src/Illuminants/CIE_D55.cs

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
/*
2+
* The MIT License (MIT)
3+
* Copyright (c) 2014 Andrés Correa Casablanca
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy
6+
* of this software and associated documentation files (the "Software"), to deal
7+
* in the Software without restriction, including without limitation the rights
8+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
* copies of the Software, and to permit persons to whom the Software is
10+
* furnished to do so, subject to the following conditions:
11+
*
12+
* The above copyright notice and this permission notice shall be included in all
13+
* copies or substantial portions of the Software.
14+
*
15+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
* SOFTWARE.
22+
*/
23+
24+
/*
25+
* Contributors:
26+
* - Andrés Correa Casablanca <castarco@gmail.com , castarco@litipk.com>
27+
*/
28+
29+
30+
using Litipk.ColorSharp.ColorSpaces;
31+
using Litipk.ColorSharp.LightSpectrums;
32+
33+
34+
namespace Litipk.ColorSharp
35+
{
36+
namespace Illuminants
37+
{
38+
/**
39+
* <summary>
40+
* CIE Standard Illuminant D55. Constructed to represent mid-morning/mid-afternoon daylight. CCT of 5503 K.
41+
* </summary>
42+
*/
43+
public static class CIE_D55
44+
{
45+
/**
46+
* <value>D50 expressed in its 'original form', a light spectrum.</value>
47+
*/
48+
public static readonly RegularLightSpectrum spectrum_Sample = new RegularLightSpectrum(
49+
380, 780, new [] {
50+
32.58,
51+
35.34,
52+
38.09,
53+
49.52,
54+
60.95,
55+
64.75,
56+
68.55,
57+
70.07,
58+
71.58,
59+
69.75,
60+
67.91,
61+
76.76,
62+
85.61,
63+
91.80,
64+
97.99,
65+
99.23,
66+
100.46,
67+
100.19,
68+
99.91,
69+
101.33,
70+
102.74,
71+
100.41,
72+
98.08,
73+
99.38,
74+
100.68,
75+
100.69,
76+
100.70,
77+
100.34,
78+
99.99,
79+
102.10,
80+
104.21,
81+
103.16,
82+
102.10,
83+
102.53,
84+
102.97,
85+
101.48,
86+
100.00,
87+
98.61,
88+
97.22,
89+
97.48,
90+
97.75,
91+
94.59,
92+
91.43,
93+
92.93,
94+
94.42,
95+
94.78,
96+
95.14,
97+
94.68,
98+
94.22,
99+
92.33,
100+
90.45,
101+
91.39,
102+
92.33,
103+
90.59,
104+
88.85,
105+
89.59,
106+
90.32,
107+
92.13,
108+
93.95,
109+
91.95,
110+
89.96,
111+
84.82,
112+
79.68,
113+
81.26,
114+
82.84,
115+
83.84,
116+
84.84,
117+
77.54,
118+
70.24,
119+
74.77,
120+
79.30,
121+
82.15,
122+
84.99,
123+
78.44,
124+
71.88,
125+
62.34,
126+
52.79,
127+
64.36,
128+
75.93,
129+
73.87,
130+
71.82
131+
}
132+
);
133+
}
134+
}
135+
}
136+

0 commit comments

Comments
 (0)