ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkNarrowBandThresholdSegmentationLevelSetImageFilter.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 __itkNarrowBandThresholdSegmentationLevelSetImageFilter_h
19 #define __itkNarrowBandThresholdSegmentationLevelSetImageFilter_h
20 
23 
24 namespace itk
25 {
83 template< class TInputImage,
84  class TFeatureImage,
85  class TOutputPixelType = float >
87  public NarrowBandLevelSetImageFilter< TInputImage, TFeatureImage,
88  TOutputPixelType, Image< TOutputPixelType,
89  TInputImage ::
90  ImageDimension > >
91 {
92 public:
95  typedef NarrowBandLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType,
96  Image< TOutputPixelType,
97  TInputImage::ImageDimension > >
101 
103  typedef typename Superclass::ValueType ValueType;
104  typedef typename Superclass::OutputImageType OutputImageType;
105  typedef typename Superclass::FeatureImageType FeatureImageType;
106 
111 
114 
116  itkNewMacro(Self);
117 
120  void SetUpperThreshold(ValueType v)
121  {
122  this->m_ThresholdFunction->SetUpperThreshold(v);
123  this->Modified();
124  }
126 
127  void SetLowerThreshold(ValueType v)
128  {
129  this->m_ThresholdFunction->SetLowerThreshold(v);
130  this->Modified();
131  }
132 
133  ValueType GetUpperThreshold() const
134  {
135  return m_ThresholdFunction->GetUpperThreshold();
136  }
137 
138  ValueType GetLowerThreshold() const
139  {
140  return m_ThresholdFunction->GetLowerThreshold();
141  }
142 
145  void SetEdgeWeight(ValueType v)
146  {
147  this->m_ThresholdFunction->SetEdgeWeight(v);
148  this->Modified();
149  }
151 
152  ValueType GetEdgeWeight() const
153  {
154  return m_ThresholdFunction->GetEdgeWeight();
155  }
156 
160  void SetSmoothingIterations(int v)
161  {
162  this->m_ThresholdFunction->SetSmoothingIterations(v);
163  this->Modified();
164  }
166 
167  int GetSmoothingIterations() const
168  {
169  return m_ThresholdFunction->GetSmoothingIterations();
170  }
171 
175  void SetSmoothingTimeStep(ValueType v)
176  {
177  this->m_ThresholdFunction->SetSmoothingTimeStep(v);
178  this->Modified();
179  }
181 
182  ValueType GetSmoothingTimeStep() const
183  {
184  return m_ThresholdFunction->GetSmoothingTimeStep();
185  }
186 
190  void SetSmoothingConductance(ValueType v)
191  {
192  this->m_ThresholdFunction->SetSmoothingConductance(v);
193  this->Modified();
194  }
196 
197  ValueType GetSmoothingConductance() const
198  {
199  return m_ThresholdFunction->GetSmoothingConductance();
200  }
201 
202 #ifdef ITK_USE_CONCEPT_CHECKING
203 
204  itkConceptMacro( OutputHasNumericTraitsCheck,
206 
208 #endif
209 
210 protected:
213 
214  virtual void PrintSelf(std::ostream & os, Indent indent) const;
215 
216  NarrowBandThresholdSegmentationLevelSetImageFilter(const Self &); // purposely
217  // not impl.
218  void operator=(const Self &); //purposely
219  // not
220  // implemented
221 
222 private:
224 };
225 } // end namespace itk
226 
227 #ifndef ITK_MANUAL_INSTANTIATION
228 #include "itkNarrowBandThresholdSegmentationLevelSetImageFilter.hxx"
229 #endif
230 
231 #endif
232