ITK  5.0.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 
23 namespace itk {
24 
45 template< typename TDisplacementField>
47  : public InPlaceImageFilter< TDisplacementField, TDisplacementField >
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(VariationalRegistrationRegularizer);
51 
55  TDisplacementField, TDisplacementField >;
58 
60  itkNewMacro(Self);
61 
64 
65  static constexpr unsigned int ImageDimension = TDisplacementField::ImageDimension;
66 
68  using DisplacementFieldType = TDisplacementField;
69  using DisplacementFieldPointer = typename DisplacementFieldType::Pointer;
70  using DisplacementFieldConstPointer = typename DisplacementFieldType::ConstPointer;
71  using PixelType = typename DisplacementFieldType::PixelType;
72 
74 
76  itkSetMacro( UseImageSpacing, bool );
77 
79  itkGetConstMacro( UseImageSpacing, bool );
80 
82  itkBooleanMacro( UseImageSpacing );
83 
84 protected:
87 
89  void PrintSelf(std::ostream& os, Indent indent) const override;
90 
92  virtual void Initialize() {};
93 
94 private:
96  bool m_UseImageSpacing;
97 };
98 
99 }
100 
101 #ifndef ITK_MANUAL_INSTANTIATION
102 # include "itkVariationalRegistrationRegularizer.hxx"
103 #endif
104 
105 #endif
Light weight base class for most itk classes.
Define numeric traits for std::vector.
typename DisplacementFieldType::ConstPointer DisplacementFieldConstPointer
Base class for regularization component in the variational registration framework.
void PrintSelf(std::ostream &os, Indent indent) const override
typename NumericTraits< PixelType >::ValueType ValueType
typename DisplacementFieldType::Pointer DisplacementFieldPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for filters that take an image as input and overwrite that image as the output...
typename DisplacementFieldType::PixelType PixelType