ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkGeodesicActiveContourShapePriorLevelSetImageFilter.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 __itkGeodesicActiveContourShapePriorLevelSetImageFilter_h
00019 #define __itkGeodesicActiveContourShapePriorLevelSetImageFilter_h
00020 
00021 #include "itkShapePriorSegmentationLevelSetImageFilter.h"
00022 #include "itkGeodesicActiveContourShapePriorLevelSetFunction.h"
00023 #include "itkShapePriorMAPCostFunction.h"
00024 
00025 namespace itk
00026 {
00110 template< class TInputImage,
00111           class TFeatureImage,
00112           class TOutputPixelType = float >
00113 class ITK_EXPORT GeodesicActiveContourShapePriorLevelSetImageFilter:
00114   public ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage,
00115                                                     TOutputPixelType >
00116 {
00117 public:
00119   typedef GeodesicActiveContourShapePriorLevelSetImageFilter
00120   Self;
00121   typedef ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage,
00122                                                      TOutputPixelType > Superclass;
00123 
00124   typedef SmartPointer< Self >       Pointer;
00125   typedef SmartPointer< const Self > ConstPointer;
00126 
00128   typedef typename Superclass::ValueType        ValueType;
00129   typedef typename Superclass::OutputImageType  OutputImageType;
00130   typedef typename Superclass::FeatureImageType FeatureImageType;
00131   typedef typename Superclass::OutputPixelType  OutputPixelType;
00132 
00134   typedef GeodesicActiveContourShapePriorLevelSetFunction< OutputImageType,
00135                                                            FeatureImageType >
00136   GeodesicActiveContourFunctionType;
00137   typedef typename GeodesicActiveContourFunctionType::Pointer
00138   GeodesicActiveContourFunctionPointer;
00139 
00141   itkTypeMacro(GeodesicActiveContourShapePriorLevelSetImageFilter,
00142                ShapePriorSegmentationLevelSetImageFilter);
00143 
00145   itkNewMacro(Self);
00146 
00149   void SetDerivativeSigma(float value)
00150   {
00151     if ( value != m_GeodesicActiveContourFunction->GetDerivativeSigma() )
00152       {
00153       m_GeodesicActiveContourFunction->SetDerivativeSigma(value);
00154       this->Modified();
00155       }
00156   }
00158 
00161   float GetDerivativeSigma() const
00162   { return m_GeodesicActiveContourFunction->GetDerivativeSigma(); }
00163 protected:
00164   ~GeodesicActiveContourShapePriorLevelSetImageFilter() {}
00165   GeodesicActiveContourShapePriorLevelSetImageFilter();
00167 
00168   virtual void PrintSelf(std::ostream & os, Indent indent) const;
00169 
00170   GeodesicActiveContourShapePriorLevelSetImageFilter(const Self &); // purposely
00171                                                                     // not
00172                                                                     //
00173                                                                     // implemented
00174   void operator=(const Self &);                                     //purposely
00175 
00176   // not
00177   // implemented
00178 
00181   void GenerateData();
00182 
00183 private:
00184   GeodesicActiveContourFunctionPointer m_GeodesicActiveContourFunction;
00185 };
00186 } // end namespace itk
00187 
00188 #ifndef ITK_MANUAL_INSTANTIATION
00189 #include "itkGeodesicActiveContourShapePriorLevelSetImageFilter.hxx"
00190 #endif
00191 
00192 #endif
00193