[Insight-developers] Can I get rid of a completely useless warning message from GDCM?

kent williams norman-k-williams at uiowa.edu
Mon Nov 29 12:41:35 EST 2010


This warning shows up at run time EVERY SINGLE TIME YOU USE ITK TO READ AN
IMAGE FILE:

ITK/Utilities/gdcm/Source/DataStructureAndEncodingDefinition/gdcmReader.cxx:

364: if( F->GetHeader().IsEmpty() )
365:  {
366:  hasmetaheader = false;
367:  gdcmWarningMacro( "no file meta info found" );
368:  }

The real problem is not that you get that warning  when you try and read
DICOM files, but that you get that warning when the ImageFileReader is
calling CanReadFile on all the ImageIO classes. Since GDCMImagIO shows up
early in ImageIOFactory's list of ImageIO classes, GDCM is warning about
files that aren't just missing DICOM meta info, but aren't DICOM files at
all.



More information about the Insight-developers mailing list