diff --git a/Sources/Rendering/Core/ColorTransferFunction/ColorMaps.json b/Sources/Rendering/Core/ColorTransferFunction/ColorMaps.json index 035db15ef66..9aa32917cdb 100644 --- a/Sources/Rendering/Core/ColorTransferFunction/ColorMaps.json +++ b/Sources/Rendering/Core/ColorTransferFunction/ColorMaps.json @@ -529,6 +529,160 @@ "NanColor" : [ 1, 0, 0 ], "RGBPoints" : [ 0, 0, 0, 0, 1, 1, 1, 1 ] }, + { + "ColorSpace" : "RGB", + "Name" : "Grayscale-DICOM-sigmoid", + "Notes": "This is a 16 point sample of a sigmoid grayscale colormap described in the DICOM standard. See equation C.11-1 in section C.11.2", + "NanColor" : [ 1, 0, 0 ], + "BelowRangeColor" : [ 0, 0, 0 ], + "AboveRangeColor" : [ 1, 1, 1 ], + "RGBPoints" : [ + -1, + 0.01798620996209156, + 0.01798620996209156, + 0.01798620996209156, + -0.8666666666666667, + 0.030275691986950463, + 0.030275691986950463, + 0.030275691986950463, + -0.7333333333333334, + 0.05053016223541345, + 0.05053016223541345, + 0.05053016223541345, + -0.6, + 0.08317269649392238, + 0.08317269649392238, + 0.08317269649392238, + -0.4666666666666667, + 0.13392788832407365, + 0.13392788832407365, + 0.13392788832407365, + -0.33333333333333337, + 0.2086085273260449, + 0.2086085273260449, + 0.2086085273260449, + -0.19999999999999996, + 0.31002551887238755, + 0.31002551887238755, + 0.31002551887238755, + -0.06666666666666665, + 0.4337256058045608, + 0.4337256058045608, + 0.4337256058045608, + 0.06666666666666665, + 0.5662743941954392, + 0.5662743941954392, + 0.5662743941954392, + 0.19999999999999996, + 0.6899744811276125, + 0.6899744811276125, + 0.6899744811276125, + 0.33333333333333326, + 0.791391472673955, + 0.791391472673955, + 0.791391472673955, + 0.46666666666666656, + 0.8660721116759263, + 0.8660721116759263, + 0.8660721116759263, + 0.6000000000000001, + 0.9168273035060777, + 0.9168273035060777, + 0.9168273035060777, + 0.7333333333333334, + 0.9494698377645865, + 0.9494698377645865, + 0.9494698377645865, + 0.8666666666666667, + 0.9697243080130495, + 0.9697243080130495, + 0.9697243080130495, + 1, + 0.9820137900379085, + 0.9820137900379085, + 0.9820137900379085 + ] + }, + { + "ColorSpace" : "RGB", + "Name" : "Inverted-Grayscale", + "NanColor" : [ 1, 0, 0 ], + "RGBPoints" : [ 0, 1, 1, 1, 1, 0, 0, 0 ] + }, + { + "ColorSpace" : "RGB", + "Name" : "Inverted-Grayscale-DICOM-sigmoid", + "Notes": "This is a 16 point sample of a sigmoid inverted-grayscale colormap described in the DICOM standard. See equation C.11-1 in section C.11.2", + "BelowRangeColor" : [ 1, 1, 1 ], + "AboveRangeColor" : [ 0, 0, 0 ], + "NanColor" : [ 1, 0, 0 ], + "RGBPoints" : [ + -1, + 0.9820137900379085, + 0.9820137900379085, + 0.9820137900379085, + -0.8666666666666667, + 0.9697243080130495, + 0.9697243080130495, + 0.9697243080130495, + -0.7333333333333334, + 0.9494698377645866, + 0.9494698377645866, + 0.9494698377645866, + -0.6, + 0.9168273035060777, + 0.9168273035060777, + 0.9168273035060777, + -0.4666666666666667, + 0.8660721116759263, + 0.8660721116759263, + 0.8660721116759263, + -0.33333333333333337, + 0.791391472673955, + 0.791391472673955, + 0.791391472673955, + -0.19999999999999996, + 0.6899744811276125, + 0.6899744811276125, + 0.6899744811276125, + -0.06666666666666665, + 0.5662743941954391, + 0.5662743941954391, + 0.5662743941954391, + 0.06666666666666665, + 0.43372560580456077, + 0.43372560580456077, + 0.43372560580456077, + 0.19999999999999996, + 0.3100255188723875, + 0.3100255188723875, + 0.3100255188723875, + 0.33333333333333326, + 0.20860852732604496, + 0.20860852732604496, + 0.20860852732604496, + 0.46666666666666656, + 0.13392788832407365, + 0.13392788832407365, + 0.13392788832407365, + 0.6000000000000001, + 0.08317269649392234, + 0.08317269649392234, + 0.08317269649392234, + 0.7333333333333334, + 0.05053016223541351, + 0.05053016223541351, + 0.05053016223541351, + 0.8666666666666667, + 0.03027569198695046, + 0.03027569198695046, + 0.03027569198695046, + 1, + 0.01798620996209155, + 0.01798620996209155, + 0.01798620996209155 + ] + }, { "ColorSpace" : "RGB", "Name" : "BkRd", diff --git a/Sources/Rendering/Core/ColorTransferFunction/test/testColorTransferFunctionPresets.png b/Sources/Rendering/Core/ColorTransferFunction/test/testColorTransferFunctionPresets.png index e3a8cb11ea9..f7c6296c2ae 100644 Binary files a/Sources/Rendering/Core/ColorTransferFunction/test/testColorTransferFunctionPresets.png and b/Sources/Rendering/Core/ColorTransferFunction/test/testColorTransferFunctionPresets.png differ