ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkCurvesLevelSetImageFilter.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 __itkCurvesLevelSetImageFilter_h
00019 #define __itkCurvesLevelSetImageFilter_h
00020 
00021 #include "itkSegmentationLevelSetImageFilter.h"
00022 #include "itkCurvesLevelSetFunction.h"
00023 
00024 namespace itk
00025 {
00101 template< class TInputImage,
00102           class TFeatureImage,
00103           class TOutputPixelType = float >
00104 class ITK_EXPORT CurvesLevelSetImageFilter:
00105   public SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >
00106 {
00107 public:
00109   typedef CurvesLevelSetImageFilter                                                        Self;
00110   typedef  SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType > Superclass;
00111   typedef SmartPointer< Self >                                                             Pointer;
00112   typedef SmartPointer< const Self >                                                       ConstPointer;
00113 
00115   typedef typename Superclass::ValueType        ValueType;
00116   typedef typename Superclass::OutputImageType  OutputImageType;
00117   typedef typename Superclass::FeatureImageType FeatureImageType;
00118 
00120   typedef CurvesLevelSetFunction< OutputImageType, FeatureImageType > CurvesFunctionType;
00121   typedef typename CurvesFunctionType::Pointer                        CurvesFunctionPointer;
00122 
00124   itkTypeMacro(CurvesLevelSetImageFilter, SegmentationLevelSetImageFilter);
00125 
00127   itkNewMacro(Self);
00128 
00130   void SetDerivativeSigma(float value)
00131   {
00132     m_CurvesFunction->SetDerivativeSigma(value);
00133     this->Modified();
00134   }
00136 
00137   float GetDerivativeSigma() const
00138   { return m_CurvesFunction->GetDerivativeSigma(); }
00139 
00140 #ifdef ITK_USE_CONCEPT_CHECKING
00141 
00142   itkConceptMacro( OutputHasNumericTraitsCheck,
00143                    ( Concept::HasNumericTraits< TOutputPixelType > ) );
00144 
00146 #endif
00147 protected:
00148   ~CurvesLevelSetImageFilter() {}
00149   CurvesLevelSetImageFilter();
00150 
00151   virtual void PrintSelf(std::ostream & os, Indent indent) const;
00152 
00153   CurvesLevelSetImageFilter(const Self &); // purposely not implemented
00154   void operator=(const Self &);            //purposely not implemented
00155 
00158   void GenerateData();
00159 
00160 private:
00161   CurvesFunctionPointer m_CurvesFunction;
00162 };
00163 } // end namespace itk
00164 
00165 #ifndef ITK_MANUAL_INSTANTIATION
00166 #include "itkCurvesLevelSetImageFilter.hxx"
00167 #endif
00168 
00169 #endif
00170