ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkShapeDetectionLevelSetImageFilter.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 __itkShapeDetectionLevelSetImageFilter_h
00019 #define __itkShapeDetectionLevelSetImageFilter_h
00020 
00021 #include "itkSegmentationLevelSetImageFilter.h"
00022 #include "itkShapeDetectionLevelSetFunction.h"
00023 
00024 namespace itk
00025 {
00105 template< class TInputImage,
00106           class TFeatureImage,
00107           class TOutputPixelType = float >
00108 class ITK_EXPORT ShapeDetectionLevelSetImageFilter:
00109   public SegmentationLevelSetImageFilter< TInputImage,
00110                                           TFeatureImage, TOutputPixelType >
00111 {
00112 public:
00114   typedef ShapeDetectionLevelSetImageFilter                                               Self;
00115   typedef SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType > Superclass;
00116   typedef SmartPointer< Self >                                                            Pointer;
00117   typedef SmartPointer< const Self >                                                      ConstPointer;
00118 
00120   typedef typename Superclass::ValueType        ValueType;
00121   typedef typename Superclass::OutputImageType  OutputImageType;
00122   typedef typename Superclass::FeatureImageType FeatureImageType;
00123 
00125   typedef ShapeDetectionLevelSetFunction< OutputImageType,
00126                                           FeatureImageType > ShapeDetectionFunctionType;
00127   typedef typename ShapeDetectionFunctionType::Pointer ShapeDetectionFunctionPointer;
00128 
00130   itkTypeMacro(ShapeDetectionLevelSetImageFilter, SegmentationLevelSetImageFilter);
00131 
00133   itkNewMacro(Self);
00134 protected:
00135   ~ShapeDetectionLevelSetImageFilter() {}
00136   ShapeDetectionLevelSetImageFilter();
00138 
00139   virtual void PrintSelf(std::ostream & os, Indent indent) const;
00140 
00141   ShapeDetectionLevelSetImageFilter(const Self &); // purposely not implemented
00142   void operator=(const Self &);                    //purposely not implemented
00143 
00146   void GenerateData();
00147 
00148 private:
00149   ShapeDetectionFunctionPointer m_ShapeDetectionFunction;
00150 };
00151 } // end namespace itk
00152 
00153 #ifndef ITK_MANUAL_INSTANTIATION
00154 #include "itkShapeDetectionLevelSetImageFilter.hxx"
00155 #endif
00156 
00157 #endif
00158