go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxTransformixFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef elxTransformixFilter_h
19 #define elxTransformixFilter_h
20 
21 #include "itkImageSource.h"
22 
23 #include "elxTransformixMain.h"
24 #include "elxParameterObject.h"
25 #include "elxPixelType.h"
26 
32 namespace elastix
33 {
34 
35 template< typename TMovingImage >
36 class ELASTIXLIB_API TransformixFilter : public itk::ImageSource< TMovingImage >
37 {
38 public:
39 
42  typedef itk::ImageSource< TMovingImage > Superclass;
43  typedef itk::SmartPointer< Self > Pointer;
44  typedef itk::SmartPointer< const Self > ConstPointer;
45 
47  itkNewMacro( Self );
48 
50  itkTypeMacro( Self, itk::ImageSource );
51 
56  typedef ArgumentMapType::value_type ArgumentMapEntryType;
57 
58  typedef itk::ProcessObject::DataObjectPointer DataObjectPointer;
59  typedef itk::ProcessObject::DataObjectIdentifierType DataObjectIdentifierType;
62 
69 
70  typedef typename itk::Image< itk::Vector< float, TMovingImage::ImageDimension >,
71  TMovingImage::ImageDimension > OutputDeformationFieldType;
72 
73  typedef typename TMovingImage::Pointer InputImagePointer;
74  typedef typename TMovingImage::ConstPointer InputImageConstPointer;
75 
76  itkStaticConstMacro( MovingImageDimension, unsigned int, TMovingImage::ImageDimension );
77 
79  virtual void SetMovingImage( TMovingImage * inputImage );
81  virtual void RemoveMovingImage( void );
82 
84  itkSetMacro( FixedPointSetFileName, std::string );
85  itkGetMacro( FixedPointSetFileName, std::string );
86  virtual void RemoveFixedPointSetFileName() { this->SetFixedPointSetFileName( "" ); }
87 
89  itkSetMacro( ComputeSpatialJacobian, bool );
90  itkGetConstMacro( ComputeSpatialJacobian, bool );
91  itkBooleanMacro( ComputeSpatialJacobian );
92 
94  itkSetMacro( ComputeDeterminantOfSpatialJacobian, bool );
95  itkGetConstMacro( ComputeDeterminantOfSpatialJacobian, bool );
96  itkBooleanMacro( ComputeDeterminantOfSpatialJacobian );
97 
99  itkSetMacro( ComputeDeformationField, bool );
100  itkGetConstMacro( ComputeDeformationField, bool );
101  itkBooleanMacro( ComputeDeformationField );
102 
104  virtual void SetTransformParameterObject( ParameterObjectPointer transformParameterObject );
105 
107 
109 
111 
113 
115  itkSetMacro( OutputDirectory, std::string );
116  itkGetConstMacro( OutputDirectory, std::string );
117  virtual void RemoveOutputDirectory() { this->SetOutputDirectory( "" ); }
118 
120  virtual void SetLogFileName( std::string logFileName );
121 
122  itkGetConstMacro( LogFileName, std::string );
123  virtual void RemoveLogFileName( void );
124 
126  itkSetMacro( LogToConsole, bool );
127  itkGetConstMacro( LogToConsole, bool );
128  itkBooleanMacro( LogToConsole );
129 
131  itkSetMacro( LogToFile, bool );
132  itkGetConstMacro( LogToFile, bool );
133  itkBooleanMacro( LogToFile );
134 
136  virtual DataObjectPointer MakeOutput( const DataObjectIdentifierType & key ) ITK_OVERRIDE;
137 
138 protected:
139 
141 
142  virtual void GenerateData( void ) ITK_OVERRIDE;
143 
144 private:
145 
146  TransformixFilter( const Self & ); // purposely not implemented
147  void operator=( const Self & ); // purposely not implemented
148 
150  virtual bool IsEmpty( const InputImagePointer inputImage );
151 
153  virtual void VerifyInputInformation( void ) ITK_OVERRIDE {};
154 
157  using itk::ProcessObject::SetInput;
158  using itk::ProcessObject::GetInput;
159  using itk::ProcessObject::RemoveInput;
160 
165 
166  std::string m_OutputDirectory;
167  std::string m_LogFileName;
168 
171 
172 };
173 
174 } // namespace elx
175 
176 #ifndef ITK_MANUAL_INSTANTIATION
177 #include "elxTransformixFilter.hxx"
178 #endif
179 
180 #endif // elxTransformixFilter_h
elastix::TransformixFilter::m_ComputeDeformationField
bool m_ComputeDeformationField
Definition: elxTransformixFilter.h:164
elastix::TransformixFilter::DataObjectPointer
itk::ProcessObject::DataObjectPointer DataObjectPointer
Definition: elxTransformixFilter.h:58
elastix::ParameterObject::ParameterMapVectorType
std::vector< ParameterMapType > ParameterMapVectorType
Definition: elxParameterObject.h:51
elastix::TransformixFilter
Definition: elxTransformixFilter.h:37
elastix::TransformixFilter::GenerateData
virtual void GenerateData(void) ITK_OVERRIDE
elastix::TransformixFilter::MakeOutput
virtual DataObjectPointer MakeOutput(const DataObjectIdentifierType &key) ITK_OVERRIDE
elastix::TransformixFilter::SetLogFileName
virtual void SetLogFileName(std::string logFileName)
elastix::TransformixFilter::ParameterObjectPointer
ParameterObjectType::Pointer ParameterObjectPointer
Definition: elxTransformixFilter.h:67
elastix::TransformixFilter::RemoveLogFileName
virtual void RemoveLogFileName(void)
elastix::TransformixFilter::RemoveFixedPointSetFileName
virtual void RemoveFixedPointSetFileName()
Definition: elxTransformixFilter.h:86
ELASTIXLIB_API
#define ELASTIXLIB_API
Definition: elxMacro.h:301
elxTransformixMain.h
elastix::TransformixFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: elxTransformixFilter.h:44
elastix::TransformixFilter::DataObjectContainerType
TransformixMainType::DataObjectContainerType DataObjectContainerType
Definition: elxTransformixFilter.h:60
elastix::TransformixFilter::RemoveOutputDirectory
virtual void RemoveOutputDirectory()
Definition: elxTransformixFilter.h:117
elastix::TransformixFilter::ParameterObjectConstPointer
ParameterObjectType::ConstPointer ParameterObjectConstPointer
Definition: elxTransformixFilter.h:68
elastix::TransformixFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: elxTransformixFilter.h:43
elastix::TransformixFilter::DataObjectContainerPointer
TransformixMainType::DataObjectContainerPointer DataObjectContainerPointer
Definition: elxTransformixFilter.h:61
elastix::TransformixFilter::SetMovingImage
virtual void SetMovingImage(TMovingImage *inputImage)
elastix::TransformixFilter::ArgumentMapEntryType
ArgumentMapType::value_type ArgumentMapEntryType
Definition: elxTransformixFilter.h:56
elastix::TransformixFilter::OutputDeformationFieldType
itk::Image< itk::Vector< float, TMovingImage::ImageDimension >, TMovingImage::ImageDimension > OutputDeformationFieldType
Definition: elxTransformixFilter.h:71
elastix::TransformixMain::DataObjectContainerPointer
Superclass::DataObjectContainerPointer DataObjectContainerPointer
Definition: elxTransformixMain.h:70
elastix::TransformixFilter::DataObjectIdentifierType
itk::ProcessObject::DataObjectIdentifierType DataObjectIdentifierType
Definition: elxTransformixFilter.h:59
elastix::TransformixFilter::m_LogFileName
std::string m_LogFileName
Definition: elxTransformixFilter.h:167
elastix::TransformixFilter::GetTransformParameterObject
ParameterObjectType * GetTransformParameterObject(void)
elastix::TransformixFilter::m_OutputDirectory
std::string m_OutputDirectory
Definition: elxTransformixFilter.h:166
elastix::TransformixFilter::GetMovingImage
InputImageConstPointer GetMovingImage(void)
elastix::TransformixFilter::GetOutputDeformationField
OutputDeformationFieldType * GetOutputDeformationField(void)
elxParameterObject.h
elastix::TransformixFilter::ParameterMapVectorType
ParameterObjectType::ParameterMapVectorType ParameterMapVectorType
Definition: elxTransformixFilter.h:64
elastix::TransformixFilter::ParameterValueVectorType
ParameterObjectType::ParameterValueVectorType ParameterValueVectorType
Definition: elxTransformixFilter.h:66
elastix::TransformixFilter::TransformixFilter
TransformixFilter(const Self &)
elastix::TransformixFilter::ArgumentMapType
TransformixMainType::ArgumentMapType ArgumentMapType
Definition: elxTransformixFilter.h:55
elastix::TransformixFilter::m_ComputeDeterminantOfSpatialJacobian
bool m_ComputeDeterminantOfSpatialJacobian
Definition: elxTransformixFilter.h:163
elastix::TransformixFilter::ParameterObjectType
ParameterObject ParameterObjectType
Definition: elxTransformixFilter.h:63
elastix::TransformixFilter::VerifyInputInformation
virtual void VerifyInputInformation(void) ITK_OVERRIDE
Definition: elxTransformixFilter.h:153
elastix::TransformixFilter::TransformixMainPointer
TransformixMainType::Pointer TransformixMainPointer
Definition: elxTransformixFilter.h:54
elastix::TransformixFilter::m_FixedPointSetFileName
std::string m_FixedPointSetFileName
Definition: elxTransformixFilter.h:161
elastix::TransformixFilter::operator=
void operator=(const Self &)
elastix::TransformixFilter::ParameterMapType
ParameterObjectType::ParameterMapType ParameterMapType
Definition: elxTransformixFilter.h:65
elastix::TransformixFilter::InputImageConstPointer
TMovingImage::ConstPointer InputImageConstPointer
Definition: elxTransformixFilter.h:74
elastix::TransformixFilter::itkStaticConstMacro
itkStaticConstMacro(MovingImageDimension, unsigned int, TMovingImage::ImageDimension)
elastix::TransformixFilter::SetTransformParameterObject
virtual void SetTransformParameterObject(ParameterObjectPointer transformParameterObject)
elastix::TransformixFilter::TransformixMainType
elastix::TransformixMain TransformixMainType
Definition: elxTransformixFilter.h:50
elastix::TransformixFilter::IsEmpty
virtual bool IsEmpty(const InputImagePointer inputImage)
elastix::TransformixFilter::Self
TransformixFilter Self
Definition: elxTransformixFilter.h:41
elastix::TransformixFilter::TransformixFilter
TransformixFilter(void)
elastix::TransformixFilter::Superclass
itk::ImageSource< TMovingImage > Superclass
Definition: elxTransformixFilter.h:42
elastix::TransformixMain
A class with all functionality to configure transformix.
Definition: elxTransformixMain.h:39
elastix::TransformixFilter::m_LogToFile
bool m_LogToFile
Definition: elxTransformixFilter.h:170
elastix::ParameterObject
Definition: elxParameterObject.h:35
elastix::TransformixFilter::m_ComputeSpatialJacobian
bool m_ComputeSpatialJacobian
Definition: elxTransformixFilter.h:162
elastix::ParameterObject::ParameterValueVectorType
std::vector< ParameterValueType > ParameterValueVectorType
Definition: elxParameterObject.h:46
elastix::TransformixFilter::m_LogToConsole
bool m_LogToConsole
Definition: elxTransformixFilter.h:169
elxPixelType.h
elastix::TransformixMain::ArgumentMapType
Superclass::ArgumentMapType ArgumentMapType
Definition: elxTransformixMain.h:65
elastix::TransformixMain::Pointer
itk::SmartPointer< Self > Pointer
Definition: elxTransformixMain.h:45
elastix::TransformixFilter::RemoveMovingImage
virtual void RemoveMovingImage(void)
elastix::TransformixFilter::InputImagePointer
TMovingImage::Pointer InputImagePointer
Definition: elxTransformixFilter.h:73
elastix::TransformixMain::DataObjectContainerType
Superclass::DataObjectContainerType DataObjectContainerType
Definition: elxTransformixMain.h:68
elastix::ParameterObject::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: elxParameterObject.h:40
elastix
Definition: elxFixedGenericPyramid.h:25
elastix::ParameterObject::ParameterMapType
std::map< ParameterKeyType, ParameterValueVectorType > ParameterMapType
Definition: elxParameterObject.h:48
elastix::TransformixFilter::GetOutputDeformationField
const OutputDeformationFieldType * GetOutputDeformationField(void) const
elastix::TransformixFilter::GetTransformParameterObject
const ParameterObjectType * GetTransformParameterObject(void) const
elastix::ParameterObject::Pointer
itk::SmartPointer< Self > Pointer
Definition: elxParameterObject.h:39


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo