From: bouilhol Date: Wed, 18 Aug 2010 15:32:20 +0000 (+0000) Subject: workaround for bug in itk/gdcmDict.h : gdcm headers seem to need to be included X-Git-Tag: v1.2.0~426 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a7ed89032c981e479338f0ae67fbc625a478560c;p=clitk.git workaround for bug in itk/gdcmDict.h : gdcm headers seem to need to be included before the itk ones, otherwise there is a conflict between stdint.h and itkIntTypes.h --- diff --git a/common/clitkImageCommon.cxx b/common/clitkImageCommon.cxx index 9386ecd..d3cd8d8 100644 --- a/common/clitkImageCommon.cxx +++ b/common/clitkImageCommon.cxx @@ -69,7 +69,7 @@ void clitk::ReadImageDimensionAndPixelType(const std::string & filename, //-------------------------------------------------------------------- //-------------------------------------------------------------------- -/* Read a dicom header +// Read a dicom header gdcm::File * clitk::readDicomHeader(const std::string & filename, const bool verbose) { @@ -82,7 +82,7 @@ gdcm::File * clitk::readDicomHeader(const std::string & filename, header->Load(); return header; } -*///-------------------------------------------------------------------- +///-------------------------------------------------------------------- //-------------------------------------------------------------------- itk::ImageIOBase::Pointer clitk::readImageHeader(const std::string & filename, bool exit_on_error) diff --git a/common/clitkImageCommon.h b/common/clitkImageCommon.h index d3fefb3..e734d21 100644 --- a/common/clitkImageCommon.h +++ b/common/clitkImageCommon.h @@ -26,8 +26,8 @@ #include "itkImageFileReader.h" #include "itkImageSeriesReader.h" #include "itkImageFileWriter.h" -//#include "gdcmFile.h" -//#include "gdcmFileHelper.h" +#include "gdcmFile.h" +#include "gdcmFileHelper.h" namespace clitk { @@ -81,7 +81,7 @@ namespace clitk { //-------------------------------------------------------------------- // Read a dicom header -// gdcm::File * readDicomHeader(const std::string & filename, const bool verbose=false); + gdcm::File * readDicomHeader(const std::string & filename, const bool verbose=false); //-------------------------------------------------------------------- template diff --git a/registration/clitkAffineRegistrationGenericFilter.h b/registration/clitkAffineRegistrationGenericFilter.h index 0702308..315a61d 100644 --- a/registration/clitkAffineRegistrationGenericFilter.h +++ b/registration/clitkAffineRegistrationGenericFilter.h @@ -22,6 +22,7 @@ // clitk include #include "clitkIO.h" #include "clitkCommon.h" +#include "clitkImageCommon.h" #include "clitkAffineRegistration_ggo.h" #include "clitkImageArithm_ggo.h" #include "clitkCorrelationRatioImageToImageMetric.h"