Orfeo Toolbox  4.0
itkLevelSetVelocityNeighborhoodExtractor.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 __itkLevelSetVelocityNeighborhoodExtractor_h
19 #define __itkLevelSetVelocityNeighborhoodExtractor_h
20 
22 
23 namespace itk
24 {
53 template<
54  typename TLevelSet,
55  typename TAuxValue,
56  unsigned int VAuxDimension = 1
57  >
59  public LevelSetNeighborhoodExtractor< TLevelSet >
60 {
61 public:
67 
69  itkNewMacro(Self);
70 
74 
77 
79  itkStaticConstMacro(SetDimension, unsigned int,
81 
83  typedef::itk::Index< itkGetStaticConstMacro(SetDimension) > Index;
84 
94 
96  void SetAuxImage(const AuxImageType *ptr, unsigned int idx = 0)
97  {
98  if ( idx < VAuxDimension && m_AuxImage[idx] != ptr )
99  {
100  m_AuxImage[idx] = ptr;
101  }
102  this->Modified();
103  }
104 
106  AuxImageConstPointer GetAuxImage(unsigned int idx = 0)
107  {
108  if ( idx >= VAuxDimension )
109  {
110  return NULL;
111  }
112  else
113  {
114  return m_AuxImage[idx];
115  }
116  }
117 
121 
125 
126 protected:
129  void PrintSelf(std::ostream & os, Indent indent) const;
130 
131  virtual void Initialize();
132 
133  virtual double CalculateDistance(Index & index);
134 
135 private:
136  LevelSetVelocityNeighborhoodExtractor(const Self &); //purposely not
137  // implemented
138  void operator=(const Self &); //purposely not
139  // implemented
140 
144 };
145 } // namespace itk
146 
147 #ifndef ITK_MANUAL_INSTANTIATION
149 #endif
150 
151 #endif

Generated at Sat Mar 8 2014 15:09:17 for Orfeo Toolbox with doxygen 1.8.3.1