00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkNarrowBandCurvesLevelSetImageFilter_h
00018 #define __itkNarrowBandCurvesLevelSetImageFilter_h
00019
00020 #include "itkNarrowBandLevelSetImageFilter.h"
00021 #include "itkCurvesLevelSetFunction.h"
00022
00023 namespace itk {
00024
00098 template <class TInputImage,
00099 class TFeatureImage,
00100 class TOutputPixelType = float >
00101 class ITK_EXPORT NarrowBandCurvesLevelSetImageFilter
00102 : public NarrowBandLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType, Image<TOutputPixelType, ::itk::GetImageDimension<TInputImage>::ImageDimension> >
00103 {
00104 public:
00106 typedef NarrowBandCurvesLevelSetImageFilter Self;
00107 typedef NarrowBandLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType, Image<TOutputPixelType, ::itk::GetImageDimension<TInputImage>::ImageDimension> >
00108 Superclass;
00109 typedef SmartPointer<Self> Pointer;
00110 typedef SmartPointer<const Self> ConstPointer;
00111
00113 typedef typename Superclass::ValueType ValueType;
00114 typedef typename Superclass::OutputImageType OutputImageType;
00115 typedef typename Superclass::FeatureImageType FeatureImageType;
00116
00118 typedef CurvesLevelSetFunction<OutputImageType,
00119 FeatureImageType> CurvesFunctionType;
00120 typedef typename CurvesFunctionType::Pointer
00121 CurvesFunctionPointer;
00122
00124 itkTypeMacro(NarrowBandCurvesLevelSetImageFilter, NarrowBandLevelSetImageFilter);
00125
00127 itkNewMacro(Self);
00128
00130 void SetDerivativeSigma( float value )
00131 {
00132 m_CurvesFunction->SetDerivativeSigma( value );
00133 this->Modified();
00134 }
00135 float GetDerivativeSigma() const
00136 { return m_CurvesFunction->GetDerivativeSigma(); }
00138
00139 #ifdef ITK_USE_CONCEPT_CHECKING
00140
00141 itkConceptMacro(OutputHasNumericTraitsCheck,
00142 (Concept::HasNumericTraits<TOutputPixelType>));
00143
00145 #endif
00146
00147 protected:
00148 ~NarrowBandCurvesLevelSetImageFilter() {}
00149 NarrowBandCurvesLevelSetImageFilter();
00150
00151 virtual void PrintSelf(std::ostream &os, Indent indent) const;
00152
00153 NarrowBandCurvesLevelSetImageFilter(const Self &);
00154 void operator=(const Self&);
00155
00158 void GenerateData();
00159
00160 private:
00161 CurvesFunctionPointer m_CurvesFunction;
00162 };
00163
00164 }
00165
00166 #ifndef ITK_MANUAL_INSTANTIATION
00167 #include "itkNarrowBandCurvesLevelSetImageFilter.txx"
00168 #endif
00169
00170 #endif
00171