From: srit Date: Sat, 17 Apr 2010 03:58:34 +0000 (+0000) Subject: Minor fixes for windows compilation X-Git-Tag: v1.2.0~720 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=704f076ddcbb92e2cc0aaaec501d8d7e3984fb73;p=clitk.git Minor fixes for windows compilation --- diff --git a/filters/clitkBinarizeImageGenericFilter.txx b/filters/clitkBinarizeImageGenericFilter.txx index 2076e71..e7865bd 100644 --- a/filters/clitkBinarizeImageGenericFilter.txx +++ b/filters/clitkBinarizeImageGenericFilter.txx @@ -32,7 +32,6 @@ #include "itkMaskImageFilter.h" #include "itkMaskNegatedImageFilter.h" #include -#include namespace clitk { @@ -57,7 +56,6 @@ namespace clitk ADD_IMAGE_TYPE(Dim, short); ADD_IMAGE_TYPE(Dim, ushort); ADD_IMAGE_TYPE(Dim, int); - ADD_IMAGE_TYPE(Dim, uint16); ADD_IMAGE_TYPE(Dim, float); ADD_IMAGE_TYPE(Dim, double); } diff --git a/filters/clitkFooImageGenericFilter.txx b/filters/clitkFooImageGenericFilter.txx index b2c9c29..e8a4797 100644 --- a/filters/clitkFooImageGenericFilter.txx +++ b/filters/clitkFooImageGenericFilter.txx @@ -32,7 +32,6 @@ #include "itkMaskImageFilter.h" #include "itkMaskNegatedImageFilter.h" #include -#include namespace clitk { diff --git a/filters/clitkImageArithmGenericFilter.txx b/filters/clitkImageArithmGenericFilter.txx index 60ddc08..5d7f6e0 100644 --- a/filters/clitkImageArithmGenericFilter.txx +++ b/filters/clitkImageArithmGenericFilter.txx @@ -99,7 +99,6 @@ namespace clitk void ImageArithmGenericFilter::UpdateWithInputImageType() { // Read input1 typename ImageType::Pointer input1 = this->template GetInput(0); - typename ImageType::PixelType PixelType; // Set input image iterator typedef itk::ImageRegionIterator IteratorType; @@ -117,7 +116,7 @@ namespace clitk } // Check if overwrite and outputisfloat and pixeltype is not float -> do not overwrite - if (mOverwriteInputImage && mOutputIsFloat && (typeid(PixelType) != typeid(float))) { + if (mOverwriteInputImage && mOutputIsFloat && (typeid(ImageType::PixelType) != typeid(float))) { // std::cerr << "Warning. Could not use both mOverwriteInputImage and mOutputIsFloat, because input is " // << typeid(PixelType).name() // << std::endl; @@ -213,7 +212,7 @@ namespace clitk break; case 5: // Absolute difference while (!ito.IsAtEnd()) { - ito.Set(PixelTypeDownCast(fabs(it2.Get()-it1.Get()))); + ito.Set(PixelTypeDownCast(fabs((double)it2.Get()-(double)it1.Get()))); ++it1; ++it2; ++ito; } break; diff --git a/filters/clitkMedianImageGenericFilter.txx b/filters/clitkMedianImageGenericFilter.txx index 29a316c..81ef36e 100644 --- a/filters/clitkMedianImageGenericFilter.txx +++ b/filters/clitkMedianImageGenericFilter.txx @@ -84,7 +84,7 @@ namespace clitk // Main filter typedef itk::Image OutputImageType; - class InputImageType::SizeType indexRadius; + typename InputImageType::SizeType indexRadius; // Filter typedef itk::MedianImageFilter MedianImageFilterType;