ITK  4.9.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 >
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;
62  typedef typename TInputImage::IndexType IndexType;
63  typedef typename TInputImage::PixelType PixelType;
64  typedef typename TInputImage::OffsetType OffsetType;
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:
87 
90  outputRegionForThread,
91  ThreadIdType threadId) ITK_OVERRIDE;
92 
93 private:
94  BoxSigmaImageFilter(const Self &) ITK_DELETE_FUNCTION;
95  void operator=(const Self &) ITK_DELETE_FUNCTION;
96 }; // end of class
97 } // end namespace itk
98 
99 #ifndef ITK_MANUAL_INSTANTIATION
100 #include "itkBoxSigmaImageFilter.hxx"
101 #endif
102 
103 #endif
TInputImage::RegionType RegionType
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
TInputImage::OffsetType OffsetType
SmartPointer< Self > Pointer
TInputImage::SizeType SizeType
Base class for all process objects that output image data.
static const unsigned int InputImageDimension
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
Superclass::OutputImageRegionType OutputImageRegionType
#define itkConceptMacro(name, concept)
static const unsigned int OutputImageDimension