Skip to content

Commit aed71ec

Browse files
committed
feat(ColorMaps): Add grayscale sigmoid colormap based on DICOM standard
Add a non-linear sigmoid grayscale colormap as an alternative to linear grayscale. This mapping is described in the DICOM standard in section C.11.2.1.3.1 SIGMOID Function and equation C.11-1. We use a normalized window_width of [-1, 1] and window_center = 0. The colormap is generated using a 16-point sampling of this function.
1 parent 8ecd009 commit aed71ec

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

Sources/Rendering/Core/ColorTransferFunction/ColorMaps.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,78 @@
529529
"NanColor" : [ 1, 0, 0 ],
530530
"RGBPoints" : [ 0, 0, 0, 0, 1, 1, 1, 1 ]
531531
},
532+
{
533+
"ColorSpace" : "RGB",
534+
"Name" : "Grayscale-DICOM-sigmoid",
535+
"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",
536+
"NanColor" : [ 1, 0, 0 ],
537+
"RGBPoints" : [
538+
-1,
539+
0.01798620996209156,
540+
0.01798620996209156,
541+
0.01798620996209156,
542+
-0.8666666666666667,
543+
0.030275691986950463,
544+
0.030275691986950463,
545+
0.030275691986950463,
546+
-0.7333333333333334,
547+
0.05053016223541345,
548+
0.05053016223541345,
549+
0.05053016223541345,
550+
-0.6,
551+
0.08317269649392238,
552+
0.08317269649392238,
553+
0.08317269649392238,
554+
-0.4666666666666667,
555+
0.13392788832407365,
556+
0.13392788832407365,
557+
0.13392788832407365,
558+
-0.33333333333333337,
559+
0.2086085273260449,
560+
0.2086085273260449,
561+
0.2086085273260449,
562+
-0.19999999999999996,
563+
0.31002551887238755,
564+
0.31002551887238755,
565+
0.31002551887238755,
566+
-0.06666666666666665,
567+
0.4337256058045608,
568+
0.4337256058045608,
569+
0.4337256058045608,
570+
0.06666666666666665,
571+
0.5662743941954392,
572+
0.5662743941954392,
573+
0.5662743941954392,
574+
0.19999999999999996,
575+
0.6899744811276125,
576+
0.6899744811276125,
577+
0.6899744811276125,
578+
0.33333333333333326,
579+
0.791391472673955,
580+
0.791391472673955,
581+
0.791391472673955,
582+
0.46666666666666656,
583+
0.8660721116759263,
584+
0.8660721116759263,
585+
0.8660721116759263,
586+
0.6000000000000001,
587+
0.9168273035060777,
588+
0.9168273035060777,
589+
0.9168273035060777,
590+
0.7333333333333334,
591+
0.9494698377645865,
592+
0.9494698377645865,
593+
0.9494698377645865,
594+
0.8666666666666667,
595+
0.9697243080130495,
596+
0.9697243080130495,
597+
0.9697243080130495,
598+
1,
599+
0.9820137900379085,
600+
0.9820137900379085,
601+
0.9820137900379085
602+
]
603+
},
532604
{
533605
"ColorSpace" : "RGB",
534606
"Name" : "BkRd",

0 commit comments

Comments
 (0)