00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkShapeDetectionLevelSetImageFilter_h_
00018 #define __itkShapeDetectionLevelSetImageFilter_h_
00019
00020 #include "itkSegmentationLevelSetImageFilter.h"
00021 #include "itkShapeDetectionLevelSetFunction.h"
00022
00023 namespace itk {
00024
00098 template <class TInputImage,
00099 class TFeatureImage,
00100 class TOutputPixelType = float >
00101 class ITK_EXPORT ShapeDetectionLevelSetImageFilter
00102 : public SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType, Image<TOutputPixelType, ::itk::GetImageDimension<TInputImage>::ImageDimension> >
00103 {
00104 public:
00106 typedef ShapeDetectionLevelSetImageFilter Self;
00107 typedef SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType, Image<TOutputPixelType, ::itk::GetImageDimension<TInputImage>::ImageDimension> > Superclass;
00108 typedef SmartPointer<Self> Pointer;
00109 typedef SmartPointer<const Self> ConstPointer;
00110
00112 typedef typename Superclass::ValueType ValueType;
00113 typedef typename Superclass::OutputImageType OutputImageType;
00114 typedef typename Superclass::FeatureImageType FeatureImageType;
00115
00117 typedef ShapeDetectionLevelSetFunction<OutputImageType,
00118 FeatureImageType> ShapeDetectionFunctionType;
00119 typedef typename ShapeDetectionFunctionType::Pointer ShapeDetectionFunctionPointer;
00120
00122 itkTypeMacro(ShapeDetectionLevelSetImageFilter, SegmentationLevelSetImageFilter);
00123
00125 itkNewMacro(Self);
00126
00127 protected:
00128 ~ShapeDetectionLevelSetImageFilter() {}
00129 ShapeDetectionLevelSetImageFilter();
00130
00131 virtual void PrintSelf(std::ostream &os, Indent indent) const;
00132
00133 ShapeDetectionLevelSetImageFilter(const Self &);
00134 void operator=(const Self&);
00135 private:
00136 ShapeDetectionFunctionPointer m_ShapeDetectionFunction;
00137 };
00138
00139 }
00140
00141
00142
00143 #ifndef ITK_MANUAL_INSTANTIATION
00144 #include "itkShapeDetectionLevelSetImageFilter.txx"
00145 #endif
00146
00147 #endif