ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkLaplacianSharpeningImageFilter.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 __itkLaplacianSharpeningImageFilter_h
19 #define __itkLaplacianSharpeningImageFilter_h
20 
21 #include "itkNumericTraits.h"
22 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
52 template< class TInputImage, class TOutputImage >
54  public ImageToImageFilter< TInputImage, TOutputImage >
55 {
56 public:
57 
61 
64  typedef typename TOutputImage::PixelType OutputPixelType;
65  typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
67  typedef typename TInputImage::PixelType InputPixelType;
68  typedef typename TInputImage::InternalPixelType InputInternalPixelType;
69  itkStaticConstMacro(ImageDimension, unsigned int,
70  TOutputImage::ImageDimension);
71 
73  typedef TInputImage InputImageType;
74  typedef TOutputImage OutputImageType;
75  typedef typename InputImageType::Pointer InputImagePointer;
76 
80 
83 
85  itkNewMacro(Self);
86 
95  virtual void GenerateInputRequestedRegion()
97 
101  itkBooleanMacro( UseImageSpacing );
102 
105  itkSetMacro(UseImageSpacing, bool);
106  itkGetConstMacro(UseImageSpacing, bool);
108 
109 protected:
111  {
112  m_UseImageSpacing = true;
113  }
114 
116 
122  void GenerateData();
123 
124  void PrintSelf(std::ostream &, Indent) const;
125 
126 private:
127  LaplacianSharpeningImageFilter(const Self &); //purposely not implemented
128  void operator=(const Self &); //purposely not implemented
129 
131 };
132 } // end namespace itk
133 
134 #ifndef ITK_MANUAL_INSTANTIATION
135 #include "itkLaplacianSharpeningImageFilter.hxx"
136 #endif
137 
138 #endif
139