ITK  4.13.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< typename TInputImage, typename TOutputImage >
53 class ITK_TEMPLATE_EXPORT LaplacianSharpeningImageFilter:
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() ITK_OVERRIDE;
96 
100  itkBooleanMacro( UseImageSpacing );
101 
104  itkSetMacro(UseImageSpacing, bool);
105  itkGetConstMacro(UseImageSpacing, bool);
107 
108 protected:
110  {
111  m_UseImageSpacing = true;
112  }
113 
114  virtual ~LaplacianSharpeningImageFilter() ITK_OVERRIDE {}
115 
121  void GenerateData() ITK_OVERRIDE;
122 
123  void PrintSelf(std::ostream &, Indent) const ITK_OVERRIDE;
124 
125 private:
126  ITK_DISALLOW_COPY_AND_ASSIGN(LaplacianSharpeningImageFilter);
127 
128  bool m_UseImageSpacing;
129 };
130 } // end namespace itk
131 
132 #ifndef ITK_MANUAL_INSTANTIATION
133 #include "itkLaplacianSharpeningImageFilter.hxx"
134 #endif
135 
136 #endif
This filter sharpens an image using a Laplacian. LaplacianSharpening highlights regions of rapid inte...
TOutputImage::InternalPixelType OutputInternalPixelType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
Base class for all process objects that output image data.
TInputImage::InternalPixelType InputInternalPixelType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Define additional traits for native types such as int or float.
NumericTraits< OutputPixelType >::RealType RealType