ITK  4.4.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< class TInput, class 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,
76  Superclass::ImageDimension );
77 
79  itkStaticConstMacro(AuxDimension, unsigned int, VAuxDimension);
80 
82  typedef TAuxValue AuxValueType;
85 
88 
91 
92 
94  typedef typename Superclass::NodeType NodeType;
95  typedef typename Superclass::NodePairType NodePairType;
96 
97 // typedef typename Superclass::NodeContainerType NodeContainerType;
98 // typedef typename Superclass::NodeContainerPointer NodeContainerPointer;
99 // typedef typename Superclass::NodeContainerConstIterator NodeContainerConstIterator;
100 
101  typedef typename Superclass::NodePairContainerType NodePairContainerType;
102  typedef typename Superclass::NodePairContainerPointer NodePairContainerPointer;
103  typedef typename Superclass::NodePairContainerConstIterator
105 
106  typedef typename Superclass::OutputImageType OutputImageType;
107  typedef typename Superclass::OutputPixelType OutputPixelType;
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 
125  itkConceptMacro( AuxValueHasNumericTraitsCheck,
127 
129 #endif
130 
131 protected:
134  void PrintSelf(std::ostream & os, Indent indent) const;
135 
136  virtual void InitializeOutput(OutputImageType *);
137 
138  virtual void UpdateValue( OutputImageType* oImage, const NodeType& iValue );
139 
141  virtual void GenerateOutputInformation();
142 
143  virtual void EnlargeOutputRequestedRegion(DataObject *output);
144 
147 
148 private:
149  FastMarchingExtensionImageFilterBase(const Self &); //purposely not implemented
150  void operator=(const Self &); //purposely not implemented
151  AuxImageType * m_AuxImages[VAuxDimension];
152 };
153 } // namespace itk
154 
155 #include "itkFastMarchingExtensionImageFilterBase.hxx"
156 #endif
157