From d29cca5b2e6421181c27e84051bb9a2cf813a024 Mon Sep 17 00:00:00 2001 From: Bradley Lowekamp Date: Thu, 31 Oct 2024 09:58:22 -0400 Subject: [PATCH] ENH: remove repetitive monochorme1 warning --- Modules/IO/GDCM/src/itkGDCMImageIO.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Modules/IO/GDCM/src/itkGDCMImageIO.cxx b/Modules/IO/GDCM/src/itkGDCMImageIO.cxx index 0662a4a0f83..38758c685a8 100644 --- a/Modules/IO/GDCM/src/itkGDCMImageIO.cxx +++ b/Modules/IO/GDCM/src/itkGDCMImageIO.cxx @@ -348,8 +348,8 @@ GDCMImageIO::Read(void * pointer) } else if (pi == gdcm::PhotometricInterpretation::MONOCHROME1) { - // ITK does not carry color space associated with an image. It is pretty - // much assumed that scalar image is expressed in MONOCHROME2 (aka min-is-black) + // ITK does not carry color space associated with an image. It is + // assumed that scalar image is expressed in MONOCHROME2 (aka min-is-black) gdcm::ImageChangePhotometricInterpretation icpi; icpi.SetInput(image); icpi.SetPhotometricInterpretation(gdcm::PhotometricInterpretation::MONOCHROME2); @@ -357,8 +357,6 @@ GDCMImageIO::Read(void * pointer) { itkExceptionMacro("Failed to change to Photometric Interpretation"); } - itkWarningMacro("Converting from MONOCHROME1 to MONOCHROME2 may impact the meaning of DICOM attributes related " - "to pixel values."); image = icpi.GetOutput(); }