ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkVariationalRegistrationRegularizer.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 #ifndef itkVariationalRegistrationRegularizer_h
19 #define itkVariationalRegistrationRegularizer_h
20 
21 #include "itkInPlaceImageFilter.h"
22 #include "itkMultiThreader.h"
23 
24 namespace itk {
25 
46 template< class TDisplacementField>
48  : public InPlaceImageFilter< TDisplacementField, TDisplacementField >
49 {
50 public:
53  typedef InPlaceImageFilter<
54  TDisplacementField, TDisplacementField > Superclass;
57 
59  itkNewMacro(Self);
60 
62  itkTypeMacro(itkVariationalRegistrationRegularizer, InPlaceImageFilter);
63 
64  itkStaticConstMacro(ImageDimension, unsigned int, TDisplacementField::ImageDimension);
65 
67  typedef TDisplacementField DisplacementFieldType;
68  typedef typename DisplacementFieldType::Pointer DisplacementFieldPointer;
69  typedef typename DisplacementFieldType::ConstPointer DisplacementFieldConstPointer;
70  typedef typename DisplacementFieldType::PixelType PixelType;
71 
73 
75  itkSetMacro( UseImageSpacing, bool );
76 
78  itkGetConstMacro( UseImageSpacing, bool );
79 
81  itkBooleanMacro( UseImageSpacing );
82 
83 protected:
86 
88  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
89 
91  virtual void Initialize() {};
92 
93 private:
94  VariationalRegistrationRegularizer(const Self&); //purposely not implemented
95  void operator=(const Self&); //purposely not implemented
96 
99 };
100 
101 }
102 
103 #ifndef ITK_MANUAL_INSTANTIATION
104 # include "itkVariationalRegistrationRegularizer.hxx"
105 #endif
106 
107 #endif
Light weight base class for most itk classes.
Base class for regularization component in the variational registration framework.
DisplacementFieldType::ConstPointer DisplacementFieldConstPointer
InPlaceImageFilter< TDisplacementField, TDisplacementField > Superclass
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Define additional traits for native types such as int or float.
Base class for filters that take an image as input and overwrite that image as the output...