#include "itkMaskImageFilter.h"
#include "itkMaskNegatedImageFilter.h"
#include <clitkCommon.h>
-#include <tiff.h>
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);
}
void ImageArithmGenericFilter<args_info_type>::UpdateWithInputImageType() {
// Read input1
typename ImageType::Pointer input1 = this->template GetInput<ImageType>(0);
- typename ImageType::PixelType PixelType;
// Set input image iterator
typedef itk::ImageRegionIterator<ImageType> IteratorType;
}
// 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;
break;
case 5: // Absolute difference
while (!ito.IsAtEnd()) {
- ito.Set(PixelTypeDownCast<double, PixelType>(fabs(it2.Get()-it1.Get())));
+ ito.Set(PixelTypeDownCast<double, PixelType>(fabs((double)it2.Get()-(double)it1.Get())));
++it1; ++it2; ++ito;
}
break;
// Main filter
typedef itk::Image<uchar, InputImageType::ImageDimension> OutputImageType;
- class InputImageType::SizeType indexRadius;
+ typename InputImageType::SizeType indexRadius;
// Filter
typedef itk::MedianImageFilter<InputImageType, OutputImageType> MedianImageFilterType;