ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkFastMarchingExtensionImageFilterBase.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 itkFastMarchingExtensionImageFilterBase_h
19 #define itkFastMarchingExtensionImageFilterBase_h
20 
22 #include "itkVectorContainer.h"
23 
24 namespace itk
25 {
53 template< typename TInput, typename TOutput,
54  typename TAuxValue,
55  unsigned int VAuxDimension >
57  public FastMarchingImageFilterBase< TInput, TOutput >
58 {
59 public:
65  typedef typename Superclass::Traits Traits;
66 
68  itkNewMacro(Self);
69 
73 
75  itkStaticConstMacro(ImageDimension, unsigned int,
77 
79  itkStaticConstMacro(AuxDimension, unsigned int, VAuxDimension);
80 
82  typedef TAuxValue AuxValueType;
85 
88 
91 
92 
94  typedef typename Superclass::NodeType NodeType;
96 
97 // typedef typename Superclass::NodeContainerType NodeContainerType;
98 // typedef typename Superclass::NodeContainerPointer NodeContainerPointer;
99 // typedef typename Superclass::NodeContainerConstIterator NodeContainerConstIterator;
100 
105 
108  typedef typename Superclass::InternalNodeStructure InternalNodeStructure;
109 
111  AuxImageType * GetAuxiliaryImage( const unsigned int& idx );
112 
114  itkSetObjectMacro(AuxiliaryAliveValues, AuxValueContainerType );
115  itkGetModifiableObjectMacro(AuxiliaryAliveValues, AuxValueContainerType );
117 
119  itkSetObjectMacro(AuxiliaryTrialValues, AuxValueContainerType );
120  itkGetModifiableObjectMacro(AuxiliaryTrialValues, AuxValueContainerType );
122 
123 #ifdef ITK_USE_CONCEPT_CHECKING
124  // Begin concept checking
125  itkConceptMacro( AuxValueHasNumericTraitsCheck,
127  // End concept checking
128 #endif
129 
130 protected:
133  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
134 
135  virtual void InitializeOutput(OutputImageType *) ITK_OVERRIDE;
136 
137  virtual void UpdateValue( OutputImageType* oImage, const NodeType& iValue ) ITK_OVERRIDE;
138 
140  virtual void GenerateOutputInformation() ITK_OVERRIDE;
141 
142  virtual void EnlargeOutputRequestedRegion(DataObject *output) ITK_OVERRIDE;
143 
146 
147 private:
148  FastMarchingExtensionImageFilterBase(const Self &); //purposely not implemented
149  void operator=(const Self &); //purposely not implemented
150  AuxImageType * m_AuxImages[VAuxDimension];
151 };
152 } // namespace itk
153 
154 #include "itkFastMarchingExtensionImageFilterBase.hxx"
155 #endif
virtual void InitializeOutput(OutputImageType *) override
Traits::NodePairContainerType NodePairContainerType
AuxValueContainerType::ConstIterator AuxValueContainerConstIterator
Traits::NodePairContainerPointer NodePairContainerPointer
Superclass::OutputDomainType OutputImageType
FastMarchingImageFilterBase< TInput, TOutput > Superclass
VectorContainer< IdentifierType, AuxValueVectorType > AuxValueContainerType
Abstract class to solve an Eikonal based-equation using Fast Marching Method.
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
Superclass::NodePairContainerConstIterator NodePairContainerConstIterator
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void GenerateOutputInformation() override
Traits::NodePairContainerConstIterator NodePairContainerConstIterator
AuxImageType * GetAuxiliaryImage(const unsigned int &idx)
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
virtual void UpdateValue(OutputImageType *oImage, const NodeType &iValue) override
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
virtual void EnlargeOutputRequestedRegion(DataObject *output) override
Base class for all data objects in ITK.
Templated n-dimensional image class.
Definition: itkImage.h:75
Extend auxiliary variables smoothly using Fast Marching.