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

Bill Lorensen bill.lorensen at gmail.com
Mon Nov 29 17:37:22 EST 2010


Kent,

Take out that statement, push to gerrit and add Mathieu as a reviewer.

Bill

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.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>


More information about the Insight-developers mailing list