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

Commit 091d786

Browse files
committed
Removed dependencies
1 parent 5047cfc commit 091d786

File tree

4 files changed

+2
-48
lines changed

4 files changed

+2
-48
lines changed

ColorSharp/ColorSharp.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,9 @@
4343
<ItemGroup>
4444
<Reference Include="System" />
4545
<Reference Include="System.Numerics" />
46-
<Reference Include="MathNet.Numerics">
47-
<HintPath>..\packages\MathNet.Numerics.Signed.3.5.0\lib\net40\MathNet.Numerics.dll</HintPath>
48-
</Reference>
4946
</ItemGroup>
5047
<ItemGroup>
5148
<Compile Include="Properties\AssemblyInfo.cs" />
52-
<Compile Include="src\MatchingFunctions\AMatchingFunction.cs" />
5349
<Compile Include="src\MatchingFunctions\RegularMatchingFunction.cs" />
5450
<Compile Include="src\MatchingFunctions\TabularMatchingFunction.cs" />
5551
<Compile Include="src\LightSpectrums\ALightSpectrum.cs" />
@@ -86,6 +82,7 @@
8682
<Compile Include="src\Illuminants\CIE_D50.cs" />
8783
<Compile Include="src\Illuminants\CIE_D55.cs" />
8884
<Compile Include="src\LightSpectrums\BlackBodySpectrum.cs" />
85+
<Compile Include="src\MatchingFunctions\AMatchingFunction.cs" />
8986
</ItemGroup>
9087
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
9188
<ItemGroup>
@@ -100,6 +97,5 @@
10097
<None Include="ColorSharp.nuspec" />
10198
<None Include="build_nuget_pkg.sh" />
10299
<None Include="colorsharp.pub" />
103-
<None Include="packages.config" />
104100
</ItemGroup>
105101
</Project>

ColorSharp/ColorSharp.nuspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- Added new Illuminants
1515
- Added new Matching Functions
1616
- Improved spectrum -> color conversion mechanism
17+
- Added black body spectrums
1718
- Minor API breaks.
1819
</releaseNotes>
1920
<copyright>Copyright 2014-2015</copyright>

ColorSharp/packages.config

Lines changed: 0 additions & 4 deletions
This file was deleted.

ColorSharp/src/MatchingFunctions/AMatchingFunction.cs

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
*/
2828

2929

30-
using System;
31-
32-
using Litipk.ColorSharp.LightSpectrums;
3330
using Litipk.ColorSharp.InternalUtils;
3431

3532

@@ -45,42 +42,6 @@ namespace MatchingFunctions
4542
*/
4643
public abstract class AMatchingFunction : IRealFunctionWithFiniteSupport
4744
{
48-
#region shared methods
49-
50-
/**
51-
* <summary>Applies the matching function to a spectrum to obtain a parameter of a color space.</summary>
52-
*/
53-
public double DoConvolution (ALightSpectrum lss)
54-
{
55-
double minWavelength = Math.Max (this.GetSupportMinValue (), lss.GetSupportMinValue ());
56-
double maxWavelength = Math.Min (this.GetSupportMaxValue (), lss.GetSupportMaxValue ());
57-
58-
int numberOfPartitions;
59-
60-
if (lss is AInterpolatedLightSpectrum) {
61-
numberOfPartitions = Math.Max (
62-
this.GetNumberOfDataPoints (),
63-
(lss as AInterpolatedLightSpectrum).GetNumberOfDataPoints ()
64-
);
65-
} else {
66-
numberOfPartitions = this.GetNumberOfDataPoints ();
67-
}
68-
69-
if (numberOfPartitions == -1) {
70-
numberOfPartitions = ((int)Math.Round (maxWavelength-minWavelength)) + 2;
71-
}
72-
73-
return MathNet.Numerics.Integration.NewtonCotesTrapeziumRule.IntegrateComposite (
74-
waveLength => this.EvaluateAt(waveLength)*lss.EvaluateAt(waveLength),
75-
minWavelength,
76-
maxWavelength,
77-
numberOfPartitions
78-
);
79-
}
80-
81-
#endregion
82-
83-
8445
#region abstract methods to be implemented in subclasses
8546

8647
/**

0 commit comments

Comments
 (0)