# HG changeset patch # User Sebastien Jodogne # Date 1520329265 -3600 # Node ID a5196a7d98c62559251a4054f9dc092579c5317e # Parent 911e62dbb4ac3d2ea16cb7a0e96d58fadacac075 todo diff -r 911e62dbb4ac -r a5196a7d98c6 Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp --- a/Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp Fri Mar 02 18:25:07 2018 +0100 +++ b/Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp Tue Mar 06 10:41:05 2018 +0100 @@ -265,6 +265,10 @@ // http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.7.6.3.html#sect_C.7.6.3.1.2 // https://en.wikipedia.org/wiki/YCbCr#JPEG_conversion + // TODO - Check out the outcome of Mathieu's discussion about + // truncation of YCbCr-to-RGB conversion: + // https://groups.google.com/forum/#!msg/comp.protocols.dicom/JHuGeyWbTz8/ARoTWrJzAQAJ + const float Y = ybr[0]; const float Cb = ybr[1]; const float Cr = ybr[2];