ITK  4.10.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< typename TInputImage,
84  typename TFeatureImage,
85  typename 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 
106 
109  FeatureImageType > ThresholdFunctionType;
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 
161  {
162  this->m_ThresholdFunction->SetSmoothingIterations(v);
163  this->Modified();
164  }
166 
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  // Begin concept checking
204  itkConceptMacro( OutputHasNumericTraitsCheck,
206  // End concept checking
207 #endif
208 
209 protected:
212 
213  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
214 
215  NarrowBandThresholdSegmentationLevelSetImageFilter(const Self &); // purposely
216  // not impl.
217  void operator=(const Self &); //purposely
218  // not
219  // implemented
220 
221 private:
222  ThresholdFunctionPointer m_ThresholdFunction;
223 };
224 } // end namespace itk
225 
226 #ifndef ITK_MANUAL_INSTANTIATION
227 #include "itkNarrowBandThresholdSegmentationLevelSetImageFilter.hxx"
228 #endif
229 
230 #endif
ThresholdSegmentationLevelSetFunction< OutputImageType, FeatureImageType > ThresholdFunctionType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
Definition: itkArray.h:30
virtual void PrintSelf(std::ostream &os, Indent indent) const override
virtual void Modified() const
A base class which defines the API for implementing a special class of image segmentation filters usi...
Control indentation during Print() invocation.
Definition: itkIndent.h:49
NarrowBandLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType, Image< TOutputPixelType, TInputImage::ImageDimension > > Superclass
#define itkConceptMacro(name, concept)
Templated n-dimensional image class.
Definition: itkImage.h:75
This function is used in ThresholdSegmentationLevelSetImageFilter to segment structures in images bas...