ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkLaplacianImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkLaplacianImageFilter_h
19 #define __itkLaplacianImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
61 template< class TInputImage, class TOutputImage >
62 class ITK_EXPORT LaplacianImageFilter:
63  public ImageToImageFilter< TInputImage, TOutputImage >
64 {
65 public:
66 
70 
73  typedef typename TOutputImage::PixelType OutputPixelType;
74  typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
75  typedef typename TInputImage::PixelType InputPixelType;
76  typedef typename TInputImage::InternalPixelType InputInternalPixelType;
77  itkStaticConstMacro(InputImageDimension, unsigned int,
78  TInputImage::ImageDimension);
79  itkStaticConstMacro(ImageDimension, unsigned int,
80  TOutputImage::ImageDimension);
82 
84  typedef TInputImage InputImageType;
85  typedef TOutputImage OutputImageType;
86  typedef typename InputImageType::Pointer InputImagePointer;
87 
91 
94 
96  itkNewMacro(Self);
97 
105  virtual void GenerateInputRequestedRegion()
107 
111  itkBooleanMacro( UseImageSpacing );
112 
115  itkSetMacro(UseImageSpacing, bool);
116  itkGetConstMacro(UseImageSpacing, bool);
118 
119 #ifdef ITK_USE_CONCEPT_CHECKING
120 
121  itkConceptMacro( SameDimensionCheck,
123  itkConceptMacro( InputPixelTypeIsFloatingPointCheck,
125  itkConceptMacro( OutputPixelTypeIsFloatingPointCheck,
127 
129 #endif
130 
131 protected:
133  {
134  m_UseImageSpacing = true;
135  }
136 
138 
144  void GenerateData();
145 
146  void PrintSelf(std::ostream &, Indent) const;
147 
148 private:
149  LaplacianImageFilter(const Self &); //purposely not implemented
150  void operator=(const Self &); //purposely not implemented
151 
153 };
154 } // end namespace itk
155 
156 #ifndef ITK_MANUAL_INSTANTIATION
157 #include "itkLaplacianImageFilter.hxx"
158 #endif
159 
160 #endif
161