|
|
|
@ -42,7 +42,7 @@ public class ColorProfileConverterTests(ITestOutputHelper testOutputHelper) |
|
|
|
[InlineData(TestIccProfiles.RommRgb, TestIccProfiles.StandardRgbV4)] // CMYK -> LAB -> CMYK (different bit depth v2 LUTs, 16-bit vs 8-bit)
|
|
|
|
[InlineData(TestIccProfiles.Fogra39, TestIccProfiles.StandardRgbV2, 0.0005)] // CMYK -> LAB -> XYZ -> RGB (different LUT tags, A2B vs TRC) --- tolerance slightly higher due to difference in inverse curve implementation
|
|
|
|
[InlineData(TestIccProfiles.StandardRgbV2, TestIccProfiles.Fogra39)] // RGB -> XYZ -> LAB -> CMYK (different LUT tags, TRC vs A2B)
|
|
|
|
public void CanConvertIccProfiles(string sourceProfile, string targetProfile, double tolerance = 0.00005) |
|
|
|
public void CanConvertIccProfiles(string sourceProfile, string targetProfile, double tolerance = 0.000005) |
|
|
|
{ |
|
|
|
List<Vector4> actual = Inputs.ConvertAll(input => GetActualTargetValues(input, sourceProfile, targetProfile)); |
|
|
|
AssertConversion(sourceProfile, targetProfile, actual, tolerance, testOutputHelper); |
|
|
|
@ -63,7 +63,7 @@ public class ColorProfileConverterTests(ITestOutputHelper testOutputHelper) |
|
|
|
[InlineData(TestIccProfiles.Fogra39, TestIccProfiles.StandardRgbV2, 0.0005)] // CMYK -> LAB -> XYZ -> RGB (different LUT tags, A2B vs TRC) --- tolerance slightly higher due to difference in inverse curve implementation
|
|
|
|
[InlineData(TestIccProfiles.StandardRgbV2, TestIccProfiles.Fogra39)] // RGB -> XYZ -> LAB -> CMYK (different LUT tags, TRC vs A2B)
|
|
|
|
[InlineData(TestIccProfiles.Issue129, TestIccProfiles.StandardRgbV4)] // CMYK -> LAB -> -> XYZ -> RGB
|
|
|
|
public void CanBulkConvertIccProfiles(string sourceProfile, string targetProfile, double tolerance = 0.00005) |
|
|
|
public void CanBulkConvertIccProfiles(string sourceProfile, string targetProfile, double tolerance = 0.000005) |
|
|
|
{ |
|
|
|
List<Vector4> actual = GetBulkActualTargetValues(Inputs, sourceProfile, targetProfile); |
|
|
|
AssertConversion(sourceProfile, targetProfile, actual, tolerance, testOutputHelper); |
|
|
|
|