ITK  4.8.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< typename TInputImage, typename TOutputImage >
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() ITK_OVERRIDE;
106 
110  itkBooleanMacro( UseImageSpacing );
111 
114  itkSetMacro(UseImageSpacing, bool);
115  itkGetConstMacro(UseImageSpacing, bool);
117 
118 #ifdef ITK_USE_CONCEPT_CHECKING
119  // Begin concept checking
120  itkConceptMacro( SameDimensionCheck,
122  itkConceptMacro( InputPixelTypeIsFloatingPointCheck,
124  itkConceptMacro( OutputPixelTypeIsFloatingPointCheck,
126  // End concept checking
127 #endif
128 
129 protected:
131  {
132  m_UseImageSpacing = true;
133  }
134 
136 
142  void GenerateData() ITK_OVERRIDE;
143 
144  void PrintSelf(std::ostream &, Indent) const ITK_OVERRIDE;
145 
146 private:
147  LaplacianImageFilter(const Self &); //purposely not implemented
148  void operator=(const Self &); //purposely not implemented
149 
151 };
152 } // end namespace itk
153 
154 #ifndef ITK_MANUAL_INSTANTIATION
155 #include "itkLaplacianImageFilter.hxx"
156 #endif
157 
158 #endif
InputImageType::Pointer InputImagePointer
SmartPointer< const Self > ConstPointer
static const unsigned int InputImageDimension
Base class for all process objects that output image data.
TInputImage::PixelType InputPixelType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void GenerateData() override
void PrintSelf(std::ostream &, Indent) const override
TInputImage::InternalPixelType InputInternalPixelType
TOutputImage::PixelType OutputPixelType
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
TOutputImage::InternalPixelType OutputInternalPixelType
#define itkConceptMacro(name, concept)
virtual void GenerateInputRequestedRegion() override
static const unsigned int ImageDimension