ITK  5.0.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  using Superclass = NarrowBandLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType,
96  Image< TOutputPixelType,
97  TInputImage::ImageDimension > >;
100 
102  using ValueType = typename Superclass::ValueType;
103  using OutputImageType = typename Superclass::OutputImageType;
104  using FeatureImageType = typename Superclass::FeatureImageType;
105 
110 
113 
115  itkNewMacro(Self);
116 
120  {
121  this->m_ThresholdFunction->SetUpperThreshold(v);
122  this->Modified();
123  }
125 
127  {
128  this->m_ThresholdFunction->SetLowerThreshold(v);
129  this->Modified();
130  }
131 
133  {
134  return m_ThresholdFunction->GetUpperThreshold();
135  }
136 
138  {
139  return m_ThresholdFunction->GetLowerThreshold();
140  }
141 
145  {
146  this->m_ThresholdFunction->SetEdgeWeight(v);
147  this->Modified();
148  }
150 
152  {
153  return m_ThresholdFunction->GetEdgeWeight();
154  }
155 
160  {
161  this->m_ThresholdFunction->SetSmoothingIterations(v);
162  this->Modified();
163  }
165 
167  {
168  return m_ThresholdFunction->GetSmoothingIterations();
169  }
170 
175  {
176  this->m_ThresholdFunction->SetSmoothingTimeStep(v);
177  this->Modified();
178  }
180 
182  {
183  return m_ThresholdFunction->GetSmoothingTimeStep();
184  }
185 
190  {
191  this->m_ThresholdFunction->SetSmoothingConductance(v);
192  this->Modified();
193  }
195 
197  {
198  return m_ThresholdFunction->GetSmoothingConductance();
199  }
200 
201 #ifdef ITK_USE_CONCEPT_CHECKING
202  // Begin concept checking
203  itkConceptMacro( OutputHasNumericTraitsCheck,
205  // End concept checking
206 #endif
207 
208 protected:
211 
212  void PrintSelf(std::ostream & os, Indent indent) const override;
213 
214  NarrowBandThresholdSegmentationLevelSetImageFilter(const Self &); // purposely
215  // not impl.
216  void operator=(const Self &); //purposely
217  // not
218  // implemented
219 
220 private:
222 };
223 } // end namespace itk
224 
225 #ifndef ITK_MANUAL_INSTANTIATION
226 #include "itkNarrowBandThresholdSegmentationLevelSetImageFilter.hxx"
227 #endif
228 
229 #endif
Light weight base class for most itk classes.
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
#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...