ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkBinaryMinMaxCurvatureFlowImageFilter.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 __itkBinaryMinMaxCurvatureFlowImageFilter_h
00019 #define __itkBinaryMinMaxCurvatureFlowImageFilter_h
00020 
00021 #include "itkMinMaxCurvatureFlowImageFilter.h"
00022 #include "itkBinaryMinMaxCurvatureFlowFunction.h"
00023 
00024 namespace itk
00025 {
00075 template< class TInputImage, class TOutputImage >
00076 class ITK_EXPORT BinaryMinMaxCurvatureFlowImageFilter:
00077   public MinMaxCurvatureFlowImageFilter< TInputImage, TOutputImage >
00078 {
00079 public:
00081   typedef BinaryMinMaxCurvatureFlowImageFilter                        Self;
00082   typedef MinMaxCurvatureFlowImageFilter< TInputImage, TOutputImage > Superclass;
00083   typedef SmartPointer< Self >                                        Pointer;
00084   typedef SmartPointer< const Self >                                  ConstPointer;
00085 
00087   itkNewMacro(Self);
00088 
00090   itkTypeMacro(BinaryMinMaxCurvatureFlowImageFilter, MinMaxCurvatureFlowImageFilter);
00091 
00093   typedef typename Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType;
00094   typedef typename Superclass::OutputImageType              OutputImageType;
00095 
00097   typedef BinaryMinMaxCurvatureFlowFunction< OutputImageType > BinaryMinMaxCurvatureFlowFunctionType;
00098 
00101   itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension);
00102 
00104   itkSetMacro(Threshold, double);
00105   itkGetConstMacro(Threshold, double);
00107 
00108 #ifdef ITK_USE_CONCEPT_CHECKING
00109 
00110   itkConceptMacro( InputConvertibleToOutputCheck,
00111                    ( Concept::Convertible< typename TInputImage::PixelType,
00112                                            typename TOutputImage::PixelType > ) );
00113 
00115 #endif
00116 protected:
00117 protected:
00118   BinaryMinMaxCurvatureFlowImageFilter();
00119   ~BinaryMinMaxCurvatureFlowImageFilter() {}
00120   void PrintSelf(std::ostream & os, Indent indent) const;
00122 
00125   virtual void InitializeIteration();
00126 
00127 private:
00128   BinaryMinMaxCurvatureFlowImageFilter(const Self &); //purposely not
00129                                                       // implemented
00130   void operator=(const Self &);                       //purposely not
00131 
00132   // implemented
00133 
00134   double m_Threshold;
00135 };
00136 } // end namspace itk
00137 
00138 #ifndef ITK_MANUAL_INSTANTIATION
00139 #include "itkBinaryMinMaxCurvatureFlowImageFilter.hxx"
00140 #endif
00141 
00142 #endif
00143