#include <itkImageSeriesReader.h>
#include <itkImageToVTKImageFilter.h>
#include <itkAnalyzeImageIO.h>
-#include <itkFlexibleVectorCastImageFilter.h>
+#include <itkVectorCastImageFilter.h>
#include <vtkTransform.h>
void vvImageReader::UpdateWithDim(std::string InputPixelType)
{
if (mType == VECTORFIELD || mType == VECTORFIELDWITHTIME)
- {
- if (VImageDimension == 4)
- UpdateWithDimAndInputVectorPixelType<itk::Vector<float,3>,VImageDimension>();
- else
- UpdateWithDimAndInputVectorPixelType<itk::Vector<float,VImageDimension>,VImageDimension>();
- }
+ UpdateWithDimAndInputVectorPixelType<itk::Vector<float,VImageDimension>,VImageDimension>();
else if (InputPixelType == "short")
UpdateWithDimAndInputPixelType<short,VImageDimension>();
else if (InputPixelType == "unsigned_short")
}
analyzeImageIO = dynamic_cast<itk::AnalyzeImageIO*>( reader->GetImageIO() );
}
-
+
typedef itk::Image< itk::Vector<float , 3>, VImageDimension > VectorImageType;
- typedef itk::FlexibleVectorCastImageFilter<InputImageType, VectorImageType> CasterType;
+ typedef itk::VectorCastImageFilter<InputImageType, VectorImageType> CasterType;
typename VectorImageType::Pointer casted_input;
typename CasterType::Pointer caster = CasterType::New();
caster->SetInput(input);
- caster->Update();
casted_input = caster->GetOutput();
-
+
mImage = vvImageFromITK<VImageDimension, itk::Vector<float, 3> >(casted_input, mType == IMAGEWITHTIME || mType == VECTORFIELDWITHTIME);
// For unknown analyze orientations, we set identity