ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkPhysicsBasedNonRigidRegistrationMethod.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 
19 #ifndef __itkPhysicsBasedNonRigidRegistrationMethod_h
20 #define __itkPhysicsBasedNonRigidRegistrationMethod_h
21 
22 
26 #include "itkConceptChecking.h"
27 
28 
29 namespace itk
30 {
31 namespace fem
32 {
33 
60 template <class TFixedImage, class TMovingImage, class TMaskImage, class TMesh, class TDeformationField>
61 class ITK_EXPORT PhysicsBasedNonRigidRegistrationMethod : public ImageToImageFilter<TMovingImage, TDeformationField>
62 {
63 public:
68 
70  itkNewMacro(Self);
71 
74 
75  typedef TMovingImage MovingImageType;
76  typedef TFixedImage FixedImageType;
77  typedef TMaskImage MaskImageType;
78  typedef TMesh MeshType;
79  typedef TDeformationField DeformationFieldType;
80 
81  itkStaticConstMacro(ImageDimension, unsigned int, FixedImageType::ImageDimension);
82 
87 
93  MeshType,
96  typename FeatureSelectionFilterType::FeaturePointsType // tensors are optional pixel values of feature points pointset
98 
100  itkSetMacro(SelectFraction, double);
101  itkGetConstMacro(SelectFraction, double);
103 
105  itkSetMacro(NonConnectivity, unsigned int);
106  itkGetConstMacro(NonConnectivity, unsigned int);
108 
110  itkSetMacro(BlockRadius, ImageSizeType);
111  itkGetConstReferenceMacro(BlockRadius, ImageSizeType);
113 
115  itkSetMacro(SearchRadius, ImageSizeType);
116  itkGetConstReferenceMacro(SearchRadius, ImageSizeType);
118 
120  itkSetMacro(ApproximationSteps, unsigned int);
121  itkGetMacro(ApproximationSteps, unsigned int);
123 
125  itkSetMacro(OutlierRejectionSteps, unsigned int);
126  itkGetMacro(OutlierRejectionSteps, unsigned int);
128 
130  itkSetInputMacro(FixedImage, FixedImageType);
131  itkGetInputMacro(FixedImage, FixedImageType);
133 
135  itkSetInputMacro(MovingImage, MovingImageType);
136  itkGetInputMacro(MovingImage, MovingImageType);
138 
140  itkSetInputMacro(MaskImage, MaskImageType);
141  itkGetInputMacro(MaskImage, MaskImageType);
143 
145  itkSetInputMacro(Mesh, MeshType);
146  itkGetInputMacro(Mesh, MeshType);
148 
149 #ifdef ITK_USE_CONCEPT_CHECKING
150 
155  itkConceptMacro( FixedImageDimensionShouldBe3,
157  itkConceptMacro( MovingImageDimensionShouldBe3,
159  itkConceptMacro( MaskImageDimensionShouldBe3,
161  itkConceptMacro( MeshDimensionShouldBe3,
163  itkConceptMacro( DeformationFieldImageDimensionShouldBe3,
165 
167 #endif
168 
169 protected:
172  virtual void PrintSelf( std::ostream & os, Indent indent ) const;
173  virtual void GenerateData();
174 
175 private:
176  //purposely not implemented
178  void operator=( const PhysicsBasedNonRigidRegistrationMethod & );
179 
180  // algorithm parameters
182  unsigned int m_NonConnectivity;
185  unsigned int m_ApproximationSteps;
187 
191 };
192 
193 }
194 } // end namespace itk::fem
195 
196 #ifndef ITK_MANUAL_INSTANTIATION
197 #include "itkPhysicsBasedNonRigidRegistrationMethod.hxx"
198 #endif
199 
200 #endif
201