ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
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 __itkGradientAnisotropicDiffusionImageFilter_h 00019 #define __itkGradientAnisotropicDiffusionImageFilter_h 00020 00021 #include "itkAnisotropicDiffusionImageFilter.h" 00022 #include "itkGradientNDAnisotropicDiffusionFunction.h" 00023 00024 namespace itk 00025 { 00049 template< class TInputImage, class TOutputImage > 00050 class ITK_EXPORT GradientAnisotropicDiffusionImageFilter: 00051 public AnisotropicDiffusionImageFilter< TInputImage, TOutputImage > 00052 { 00053 public: 00055 typedef GradientAnisotropicDiffusionImageFilter Self; 00056 typedef AnisotropicDiffusionImageFilter< TInputImage, TOutputImage > 00057 Superclass; 00058 typedef SmartPointer< Self > Pointer; 00059 typedef SmartPointer< const Self > ConstPointer; 00060 00062 itkNewMacro(Self); 00063 00065 itkTypeMacro(GradientAnisotropicDiffusionImageFilter, 00066 AnisotropicDiffusionImageFilter); 00067 00069 typedef typename Superclass::UpdateBufferType UpdateBufferType; 00070 00072 itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension); 00073 00074 #ifdef ITK_USE_CONCEPT_CHECKING 00075 00076 itkConceptMacro( UpdateBufferHasNumericTraitsCheck, 00077 ( Concept::HasNumericTraits< typename UpdateBufferType::PixelType > ) ); 00078 00080 #endif 00081 protected: 00082 GradientAnisotropicDiffusionImageFilter() 00083 { 00084 typename GradientNDAnisotropicDiffusionFunction< UpdateBufferType >::Pointer p = 00085 GradientNDAnisotropicDiffusionFunction< UpdateBufferType >::New(); 00086 this->SetDifferenceFunction(p); 00087 } 00089 00090 ~GradientAnisotropicDiffusionImageFilter() {} 00091 private: 00092 GradientAnisotropicDiffusionImageFilter(const Self &); //purposely not 00093 // implemented 00094 void operator=(const Self &); //purposely not 00095 00096 // implemented 00097 }; 00098 } // end namspace itk 00099 00100 #endif 00101