ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkBoxSigmaImageFilter.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 itkBoxSigmaImageFilter_h
19 #define itkBoxSigmaImageFilter_h
20 
21 #include "itkBoxImageFilter.h"
22 
23 namespace itk
24 {
40 template< typename TInputImage, typename TOutputImage = TInputImage >
41 class ITK_TEMPLATE_EXPORT BoxSigmaImageFilter:
42  public BoxImageFilter< TInputImage, TOutputImage >
43 {
44 public:
50 
52  itkNewMacro(Self);
53 
56 
58  typedef TInputImage InputImageType;
59  typedef TOutputImage OutputImageType;
60  typedef typename TInputImage::RegionType RegionType;
61  typedef typename TInputImage::SizeType SizeType;
63  typedef typename TInputImage::PixelType PixelType;
64  typedef typename TInputImage::OffsetType OffsetType;
65  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
66  typedef typename TOutputImage::PixelType OutputPixelType;
67 
69  itkStaticConstMacro(OutputImageDimension, unsigned int,
70  TOutputImage::ImageDimension);
71  itkStaticConstMacro(InputImageDimension, unsigned int,
72  TInputImage::ImageDimension);
74 
75 #ifdef ITK_USE_CONCEPT_CHECKING
76  // Begin concept checking
77  itkConceptMacro( SameDimension,
78  ( Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension),
79  itkGetStaticConstMacro(OutputImageDimension) > ) );
80 
81  // End concept checking
82 #endif
83 
84 protected:
86  ~BoxSigmaImageFilter() ITK_OVERRIDE {}
87 
89  void ThreadedGenerateData(const OutputImageRegionType &
90  outputRegionForThread,
91  ThreadIdType threadId) ITK_OVERRIDE;
92 
93 private:
94  ITK_DISALLOW_COPY_AND_ASSIGN(BoxSigmaImageFilter);
95 }; // end of class
96 } // end namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 #include "itkBoxSigmaImageFilter.hxx"
100 #endif
101 
102 #endif
TInputImage::RegionType RegionType
TInputImage::OffsetType OffsetType
SmartPointer< Self > Pointer
TInputImage::SizeType SizeType
Base class for all process objects that output image data.
Implements a fast rectangular sigma filter using the accumulator approach.
A base class for all the filters working on a box neighborhood.
TOutputImage::PixelType OutputPixelType
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
TInputImage::PixelType PixelType
Superclass::OutputImageRegionType OutputImageRegionType
TInputImage::IndexType IndexType
BoxImageFilter< TInputImage, TOutputImage > Superclass
SmartPointer< const Self > ConstPointer
#define itkConceptMacro(name, concept)