ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkNarrowBandCurvesLevelSetImageFilter.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 itkNarrowBandCurvesLevelSetImageFilter_h
19 #define itkNarrowBandCurvesLevelSetImageFilter_h
20 
23 
24 namespace itk
25 {
100 template< typename TInputImage,
101  typename TFeatureImage,
102  typename TOutputPixelType = float >
103 class ITK_TEMPLATE_EXPORT NarrowBandCurvesLevelSetImageFilter:
104  public NarrowBandLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType,
105  Image< TOutputPixelType,
106  TInputImage::ImageDimension > >
107 {
108 public:
109  ITK_DISALLOW_COPY_AND_ASSIGN(NarrowBandCurvesLevelSetImageFilter);
110 
113  using Superclass = NarrowBandLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType,
114  Image< TOutputPixelType,
115  TInputImage::ImageDimension > >;
118 
120  using ValueType = typename Superclass::ValueType;
121  using OutputImageType = typename Superclass::OutputImageType;
122  using FeatureImageType = typename Superclass::FeatureImageType;
123 
128 
131 
133  itkNewMacro(Self);
134 
136  void SetDerivativeSigma(float value)
137  {
138  m_CurvesFunction->SetDerivativeSigma(value);
139  this->Modified();
140  }
142 
143  float GetDerivativeSigma() const
144  { return m_CurvesFunction->GetDerivativeSigma(); }
145 
146 #ifdef ITK_USE_CONCEPT_CHECKING
147  // Begin concept checking
148  itkConceptMacro( OutputHasNumericTraitsCheck,
150  // End concept checking
151 #endif
152 
153 protected:
154  ~NarrowBandCurvesLevelSetImageFilter() override = default;
156 
157  void PrintSelf(std::ostream & os, Indent indent) const override;
158 
161  void GenerateData() override;
162 
163 private:
165 };
166 } // end namespace itk
167 
168 #ifndef ITK_MANUAL_INSTANTIATION
169 #include "itkNarrowBandCurvesLevelSetImageFilter.hxx"
170 #endif
171 
172 #endif
Light weight base class for most itk classes.
Segments structures in images based on user supplied edge potential map.
This function is used in CurvesLevelSetImageFilter to segment structures in images based on user supp...
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