ITK  4.2.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< class TInputImage,
101  class TFeatureImage,
102  class TOutputPixelType = float >
104  public NarrowBandLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType,
105  Image< TOutputPixelType,
106  ::itk::GetImageDimension< TInputImage >::ImageDimension > >
107 {
108 public:
111  typedef NarrowBandLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType,
112  Image< TOutputPixelType,
117 
119  typedef typename Superclass::ValueType ValueType;
120  typedef typename Superclass::OutputImageType OutputImageType;
121  typedef typename Superclass::FeatureImageType FeatureImageType;
122 
126  typedef typename CurvesFunctionType::Pointer
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 
148  itkConceptMacro( OutputHasNumericTraitsCheck,
150 
152 #endif
153 protected:
156 
157  virtual void PrintSelf(std::ostream & os, Indent indent) const;
158 
159  NarrowBandCurvesLevelSetImageFilter(const Self &); // purposely not
160  // implemented
161  void operator=(const Self &); //purposely not implemented
162 
165  void GenerateData();
166 
167 private:
169 };
170 } // end namespace itk
171 
172 #ifndef ITK_MANUAL_INSTANTIATION
173 #include "itkNarrowBandCurvesLevelSetImageFilter.hxx"
174 #endif
175 
176 #endif
177