ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkNarrowBandCurvesLevelSetImageFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkNarrowBandCurvesLevelSetImageFilter_h
00019 #define __itkNarrowBandCurvesLevelSetImageFilter_h
00020 
00021 #include "itkNarrowBandLevelSetImageFilter.h"
00022 #include "itkCurvesLevelSetFunction.h"
00023 
00024 namespace itk
00025 {
00100 template< class TInputImage,
00101           class TFeatureImage,
00102           class TOutputPixelType = float >
00103 class ITK_EXPORT NarrowBandCurvesLevelSetImageFilter:
00104   public NarrowBandLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType,
00105                                         Image< TOutputPixelType,
00106                                                ::itk::GetImageDimension< TInputImage >::ImageDimension > >
00107 {
00108 public:
00110   typedef NarrowBandCurvesLevelSetImageFilter Self;
00111   typedef  NarrowBandLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType,
00112                                           Image< TOutputPixelType,
00113                                                  ::itk::GetImageDimension< TInputImage >::ImageDimension > >
00114   Superclass;
00115   typedef SmartPointer< Self >       Pointer;
00116   typedef SmartPointer< const Self > ConstPointer;
00117 
00119   typedef typename Superclass::ValueType        ValueType;
00120   typedef typename Superclass::OutputImageType  OutputImageType;
00121   typedef typename Superclass::FeatureImageType FeatureImageType;
00122 
00124   typedef CurvesLevelSetFunction< OutputImageType,
00125                                   FeatureImageType > CurvesFunctionType;
00126   typedef typename CurvesFunctionType::Pointer
00127   CurvesFunctionPointer;
00128 
00130   itkTypeMacro(NarrowBandCurvesLevelSetImageFilter, NarrowBandLevelSetImageFilter);
00131 
00133   itkNewMacro(Self);
00134 
00136   void SetDerivativeSigma(float value)
00137   {
00138     m_CurvesFunction->SetDerivativeSigma(value);
00139     this->Modified();
00140   }
00142 
00143   float GetDerivativeSigma() const
00144   { return m_CurvesFunction->GetDerivativeSigma(); }
00145 
00146 #ifdef ITK_USE_CONCEPT_CHECKING
00147 
00148   itkConceptMacro( OutputHasNumericTraitsCheck,
00149                    ( Concept::HasNumericTraits< TOutputPixelType > ) );
00150 
00152 #endif
00153 protected:
00154   ~NarrowBandCurvesLevelSetImageFilter() {}
00155   NarrowBandCurvesLevelSetImageFilter();
00156 
00157   virtual void PrintSelf(std::ostream & os, Indent indent) const;
00158 
00159   NarrowBandCurvesLevelSetImageFilter(const Self &); // purposely not
00160                                                      // implemented
00161   void operator=(const Self &);                      //purposely not implemented
00162 
00165   void GenerateData();
00166 
00167 private:
00168   CurvesFunctionPointer m_CurvesFunction;
00169 };
00170 } // end namespace itk
00171 
00172 #ifndef ITK_MANUAL_INSTANTIATION
00173 #include "itkNarrowBandCurvesLevelSetImageFilter.hxx"
00174 #endif
00175 
00176 #endif
00177