[Insight-developers] Can I get rid of a completely useless warning message from GDCM?
    David Doria 
    daviddoria at gmail.com
       
    Mon Nov 29 12:44:16 EST 2010
    
    
  
On Mon, Nov 29, 2010 at 12:41 PM, kent williams
<norman-k-williams at uiowa.edu> wrote:
> 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.
I added a bug about this a while ago:
http://public.kitware.com/Bug/view.php?id=11490
David
    
    
More information about the Insight-developers
mailing list