ITK  5.0.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  ITK_DISALLOW_COPY_AND_ASSIGN(LaplacianSharpeningImageFilter);
58 
62 
65  using OutputPixelType = typename TOutputImage::PixelType;
66  using OutputInternalPixelType = typename TOutputImage::InternalPixelType;
68  using InputPixelType = typename TInputImage::PixelType;
69  using InputInternalPixelType = typename TInputImage::InternalPixelType;
70  static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
71 
73  using InputImageType = TInputImage;
74  using OutputImageType = TOutputImage;
75  using InputImagePointer = typename InputImageType::Pointer;
76 
80 
83 
85  itkNewMacro(Self);
86 
95  void GenerateInputRequestedRegion() 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  ~LaplacianSharpeningImageFilter() override = default;
115 
121  void GenerateData() override;
122 
123  void PrintSelf(std::ostream &, Indent) const override;
124 
125 private:
127 };
128 } // end namespace itk
129 
130 #ifndef ITK_MANUAL_INSTANTIATION
131 #include "itkLaplacianSharpeningImageFilter.hxx"
132 #endif
133 
134 #endif
This filter sharpens an image using a Laplacian. LaplacianSharpening highlights regions of rapid inte...
Define numeric traits for std::vector.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename InputImageType::Pointer InputImagePointer
TOutputImage OutputImageType
typename TOutputImage::InternalPixelType OutputInternalPixelType
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
typename NumericTraits< OutputPixelType >::RealType RealType
typename TOutputImage::PixelType OutputPixelType
typename TInputImage::InternalPixelType InputInternalPixelType