=========================================================================*/
#ifndef CLITKDICOMRTSTRUCT2IMAGEFILTER_H
-#define CLITKDICOMRT_TRUCT2IMAGEFILTER_H
+#define CLITKDICOMRTSTRUCT2IMAGEFILTER_H
#include "clitkDicomRT_ROI.h"
#include "clitkImageCommon.h"
InputIterator inIt( this->GetInput(), this->GetInput()->GetBufferedRegion() );
OutputIterator outIt( this->GetOutput(), this->GetOutput()->GetBufferedRegion() );
- inIt = inIt.Begin();
- outIt = outIt.Begin();
+ inIt.GoToBegin();
+ outIt.GoToBegin();
OutputPixelType v;
while ( !outIt.IsAtEnd() ) {
for (unsigned int i=0; i< VectorDimension; i++) {
#include "clitkBLUTDIRGenericFilter.h"
#include "clitkBLUTDIRCommandIterationUpdateDVF.h"
#include "itkCenteredTransformInitializer.h"
-
+#if ITK_VERSION_MAJOR >= 4
+# if ITK_VERSION_MINOR < 6
+# include "itkTransformToDisplacementFieldSource.h"
+# else
+# include "itkTransformToDisplacementFieldFilter.h"
+# endif
+#else
+# include "itkTransformToDeformationFieldSource.h"
+#endif
+
namespace clitk
{
typedef itk::Vector< float, SpaceDimension > DisplacementType;
typedef itk::Image< DisplacementType, InputImageType::ImageDimension > DisplacementFieldType;
#if ITK_VERSION_MAJOR >= 4
+# if ITK_VERSION_MINOR < 6
typedef itk::TransformToDisplacementFieldSource<DisplacementFieldType, double> ConvertorType;
+# else
+ typedef itk::TransformToDisplacementFieldFilter<DisplacementFieldType, double> ConvertorType;
+# endif
#else
typedef itk::TransformToDeformationFieldSource<DisplacementFieldType, double> ConvertorType;
#endif
else
transform->SetBulkTransform(NULL);
filter->SetTransform(regTransform);
+#if ITK_VERSION_MAJOR > 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR >= 6)
+ filter->SetReferenceImage(fixedImage);
+#else
filter->SetOutputParametersFromImage(fixedImage);
+#endif
filter->Update();
typename DisplacementFieldType::Pointer field = filter->GetOutput();
#include "itkLabelGeometryImageFilter.h"
#include "itkImageDuplicator.h"
#include "itkExtractImageFilter.h"
-#if ITK_VERSION_MAJOR >= 4
- #include "itkTransformToDisplacementFieldSource.h"
-#else
- #include "itkTransformToDeformationFieldSource.h"
-#endif
namespace clitk
{
- CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
===========================================================================**/
#ifndef __clitkBSplineDeformableTransform_txx
-#define __clitkBSplineDeformableTransform_tx
+#define __clitkBSplineDeformableTransform_txx
#include "clitkBSplineDeformableTransform.h"
//itk
#include "clitkBSplineDeformableTransform.h"
#include "itkBSplineDeformableTransform.h"
#if ITK_VERSION_MAJOR >= 4
-#include "itkTransformToDisplacementFieldSource.h"
+# if ITK_VERSION_MINOR < 6
+# include "itkTransformToDisplacementFieldSource.h"
+# else
+# include "itkTransformToDisplacementFieldFilter.h"
+# endif
#else
-#include "itkTransformToDeformationFieldSource.h"
+# include "itkTransformToDeformationFieldSource.h"
#endif
namespace clitk
typedef itk::Transform< double, TDVFType::ImageDimension, TDVFType::ImageDimension> GenericTransformType;
#if ITK_VERSION_MAJOR >= 4
+# if ITK_VERSION_MINOR < 6
typedef itk::TransformToDisplacementFieldSource<OutputImageType, double> ConvertorType;
+# else
+ typedef itk::TransformToDisplacementFieldFilter<OutputImageType, double> ConvertorType;
+# endif
#else
typedef itk::TransformToDeformationFieldSource<OutputImageType, double> ConvertorType;
#endif
#include "clitkConvertBLUTCoeffsToVFFilter.txx"
-#endif // clitkConvertBLUTCoeffsToVFFilter_h
\ No newline at end of file
+#endif // clitkConvertBLUTCoeffsToVFFilter_h
//#include "clitkConvertBSplineDeformableTransformToVFGenericFilter.h"
#include "clitkVectorImageToImageFilter.h"
-#if ITK_VERSION_MAJOR >= 4
-#include "itkTransformToDisplacementFieldSource.h"
-#else
-#include "itkTransformToDeformationFieldSource.h"
-#endif
#include "itkBSplineDeformableTransform.h"
namespace clitk
m_GenericTransform = m_ITKTransform;
}
+#if ITK_VERSION_MAJOR > 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR >= 6)
+ m_Filter->SetReferenceImage(output);
+#else
m_Filter->SetOutputOrigin(output->GetOrigin());
m_Filter->SetOutputSpacing(output->GetSpacing());
m_Filter->SetOutputSize(output->GetLargestPossibleRegion().GetSize());
+#endif
m_Filter->SetTransform(m_GenericTransform);
m_Filter->Update();
//itk include
#include "itkLightObject.h"
#if ITK_VERSION_MAJOR >= 4
- #include "itkTransformToDisplacementFieldSource.h"
+# if ITK_VERSION_MINOR < 6
+# include "itkTransformToDisplacementFieldSource.h"
+# else
+# include "itkTransformToDisplacementFieldFilter.h"
+# endif
#else
- #include "itkTransformToDeformationFieldSource.h"
+# include "itkTransformToDeformationFieldSource.h"
#endif
#include "itkAffineTransform.h"
// Filter
#if ITK_VERSION_MAJOR >= 4
+# if ITK_VERSION_MINOR < 6
typedef itk::TransformToDisplacementFieldSource<OutputImageType, double> ConvertorType;
+# else
+ typedef itk::TransformToDisplacementFieldFilter<OutputImageType, double> ConvertorType;
+# endif
#else
typedef itk::TransformToDeformationFieldSource<OutputImageType, double> ConvertorType;
#endif
+
typename ConvertorType::Pointer filter= ConvertorType::New();
// Output image info
reader2->Update();
typename OutputImageType::Pointer image=reader2->GetOutput();
- filter->SetOutputParametersFromImage(image);
+#if ITK_VERSION_MAJOR > 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR >= 6)
+ filter->SetReferenceImage(image);
+#else
+ filter->SetOutputParametersFromImage(image);
+#endif
}
else
{
typename OutputImageType::SizeType size;
for(i=0;i<Dimension;i++)
size[i]=m_ArgsInfo.size_arg[i];
- filter->SetOutputSize(size);
- }
+#if ITK_VERSION_MAJOR > 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR >= 6)
+ filter->SetSize(size);
+#else
+ filter->SetOutputSize(size);
+#endif
+ }
}
// Transform
- BSD See included LICENSE.txt file
- CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
===========================================================================**/
-#ifndef __vtkVoxImageWriter_h
+#ifndef __vtkVOXImageWriter_h
#define __vtkVOXImageWriter_h
#include "vtkImageWriter.h"
#include <string>
vtkPolyDataMapper* mMapper;
vtkActor* mActor;
vtkRenderer * mRenderer;
- unsigned int mCurrentTime;
+ int mCurrentTime;
}; // end class vvSurfaceViewerDialog
//====================================================================