ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkDifferenceOfGaussiansGradientImageFilter.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 __itkDifferenceOfGaussiansGradientImageFilter_h
00019 #define __itkDifferenceOfGaussiansGradientImageFilter_h
00020 
00021 #include "itkImageToImageFilter.h"
00022 #include "itkCovariantVector.h"
00023 
00024 namespace itk
00025 {
00034 template< typename TInputImage, typename TDataType >
00035 class ITK_EXPORT DifferenceOfGaussiansGradientImageFilter:
00036   public ImageToImageFilter< TInputImage,
00037                              Image< CovariantVector< TDataType, ::itk::GetImageDimension< TInputImage >::ImageDimension >,
00038                                     ::itk::GetImageDimension< TInputImage >::ImageDimension > >
00039 {
00040 public:
00042   itkStaticConstMacro(NDimensions, unsigned int, TInputImage::ImageDimension);
00043 
00045   typedef DifferenceOfGaussiansGradientImageFilter Self;
00046 
00049   typedef Image< CovariantVector< TDataType, itkGetStaticConstMacro(NDimensions) >, itkGetStaticConstMacro(NDimensions) >
00050   TOutputImage;
00051 
00053   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00054   typedef SmartPointer< Self >                            Pointer;
00055   typedef SmartPointer< const Self >                      ConstPointer;
00056 
00058   itkNewMacro(Self);
00059 
00061   itkTypeMacro(DifferenceOfGaussiansGradientImageFilter, ImageToImageFilter);
00062 
00064   typedef Size< itkGetStaticConstMacro(NDimensions) > SizeType;
00065 
00067   typedef typename TInputImage::IndexType IndexType;
00068 
00070   typedef typename TInputImage::PixelType PixelType;
00071 
00073   typedef typename TInputImage::RegionType OutputImageRegionType;
00074 
00076   itkGetConstMacro(Width, unsigned int);
00077   itkSetMacro(Width, unsigned int);
00079 
00080 #ifdef ITK_USE_CONCEPT_CHECKING
00081 
00082   itkConceptMacro( DataTypeHasNumericTraitsCheck,
00083                    ( Concept::HasNumericTraits< TDataType > ) );
00084 
00086 #endif
00087 protected:
00088   DifferenceOfGaussiansGradientImageFilter();
00089   virtual ~DifferenceOfGaussiansGradientImageFilter() {}
00090   void PrintSelf(std::ostream & os, Indent indent) const;
00092 
00094   void GenerateData();
00095 
00096 private:
00097   DifferenceOfGaussiansGradientImageFilter(const Self &); //purposely not
00098                                                           // implemented
00099   void operator=(const Self &);                           //purposely not
00100 
00101   // implemented
00102 
00103   unsigned int m_Width;
00104 };
00105 } // end namespace itk
00106 
00107 #ifndef ITK_MANUAL_INSTANTIATION
00108 #include "itkDifferenceOfGaussiansGradientImageFilter.hxx"
00109 #endif
00110 
00111 #endif
00112