ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkExtensionVelocitiesImageFilter.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 itkExtensionVelocitiesImageFilter_h
19 #define itkExtensionVelocitiesImageFilter_h
20 
24 
25 namespace itk
26 {
49 template<
50  typename TLevelSet,
51  typename TAuxValue = float,
52  unsigned int VAuxDimension = 1
53  >
54 class ITK_TEMPLATE_EXPORT ExtensionVelocitiesImageFilter:
55  public ReinitializeLevelSetImageFilter< TLevelSet >
56 {
57 public:
58  ITK_DISALLOW_COPY_AND_ASSIGN(ExtensionVelocitiesImageFilter);
59 
65 
67  itkNewMacro(Self);
68 
71 
77  using NodeType = typename LevelSetType::NodeType;
80 
82  static constexpr unsigned int SetDimension = LevelSetType::SetDimension;
83 
85  using AuxVarType = AuxVarTypeDefault< TAuxValue, VAuxDimension,
86  Self::SetDimension >;
93 
95  static constexpr unsigned int AuxDimension = VAuxDimension;
96 
98  void SetInputVelocityImage(const AuxImageType *ptr, unsigned int idx = 0);
99 
100  const AuxImageType * GetInputVelocityImage(unsigned int idx = 0);
101 
103  AuxImageType * GetOutputVelocityImage(unsigned int idx = 0);
104 
105 #ifdef ITK_USE_CONCEPT_CHECKING
106  // Begin concept checking
107  itkConceptMacro( AuxValueHasNumericTraitsCheck,
109  itkConceptMacro( LevelSetOStreamWritableCheck,
111  // End concept checking
112 #endif
113 
114 protected:
116  ~ExtensionVelocitiesImageFilter() override = default;
117 
118  void GenerateDataFull() override;
119 
120  void GenerateDataNarrowBand() override;
121 
122  void AllocateOutput() override;
123 
124  void EnlargeOutputRequestedRegion(DataObject *) override;
125 
126 private:
129 
131  using FastMarchingImageFilterType = FastMarchingExtensionImageFilter< TLevelSet, TAuxValue, VAuxDimension,
133 
135 
137 };
138 } // namespace itk
139 
140 #ifndef ITK_MANUAL_INSTANTIATION
141 #include "itkExtensionVelocitiesImageFilter.hxx"
142 #endif
143 
144 #endif
Level set auxiliary variables type information.
Definition: itkLevelSet.h:89
typename LevelSetType::LevelSetPointer LevelSetPointer
typename AuxVarType::AuxImageConstPointer AuxImageConstPointer
typename NodeContainer::Pointer NodeContainerPointer
Definition: itkLevelSet.h:65
Light weight base class for most itk classes.
typename LevelSetType::NodeContainerPointer NodeContainerPointer
Extend auxiliary variables smoothly using Fast Marching.
typename TLevelSet::Pointer LevelSetPointer
Definition: itkLevelSet.h:51
typename LevelSetType::NodeContainer NodeContainer
typename TLevelSet::PixelType PixelType
Definition: itkLevelSet.h:55
typename AuxImageType::Pointer AuxImagePointer
Definition: itkLevelSet.h:114
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
Extend velocities smoothly from a particular level set.
Represent a node in a level set.
typename AuxVarType::AuxValueContainer AuxValueContainer
typename LevelSetType::LevelSetConstPointer LevelSetConstPointer
typename AuxVarType::AuxValueType AuxValueType
typename AuxVarType::AuxValueVectorType AuxValueVectorType
typename AuxVarType::AuxImagePointer AuxImagePointer
typename AuxImageType::ConstPointer AuxImageConstPointer
Definition: itkLevelSet.h:115
typename TLevelSet::ConstPointer LevelSetConstPointer
Definition: itkLevelSet.h:52
Reinitialize the level set to the signed distance function.
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
typename AuxVarType::AuxImageType AuxImageType
#define itkConceptMacro(name, concept)
Level set type information.
Definition: itkLevelSet.h:40
FastMarchingImageFilterType::Pointer m_Marcher
Base class for all data objects in ITK.
Templated n-dimensional image class.
Definition: itkImage.h:75