ITK  5.0.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:
45  ITK_DISALLOW_COPY_AND_ASSIGN(BoxSigmaImageFilter);
46 
52 
54  itkNewMacro(Self);
55 
57  itkTypeMacro(BoxSigmaImageFilter, BoxImageFilter);
58 
60  using InputImageType = TInputImage;
61  using OutputImageType = TOutputImage;
63  using SizeType = typename TInputImage::SizeType;
65  using PixelType = typename TInputImage::PixelType;
66  using OffsetType = typename TInputImage::OffsetType;
67  using OutputImageRegionType = typename Superclass::OutputImageRegionType;
68  using OutputPixelType = typename TOutputImage::PixelType;
69 
71  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
72  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
73 
74 #ifdef ITK_USE_CONCEPT_CHECKING
75  // Begin concept checking
76  itkConceptMacro( SameDimension,
77  ( Concept::SameDimension< Self::InputImageDimension,
78  Self::OutputImageDimension > ) );
79 
80  // End concept checking
81 #endif
82 
83 protected:
85  ~BoxSigmaImageFilter() override = default;
86 
88  void DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
89 
90 }; // end of class
91 } // end namespace itk
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 #include "itkBoxSigmaImageFilter.hxx"
95 #endif
96 
97 #endif
typename TInputImage::PixelType PixelType
typename TInputImage::IndexType IndexType
typename TOutputImage::PixelType OutputPixelType
typename TInputImage::RegionType RegionType
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 TInputImage::OffsetType OffsetType
typename OutputImageType::RegionType OutputImageRegionType
typename TInputImage::SizeType SizeType
TOutputImage OutputImageType
Implements a fast rectangular sigma filter using the accumulator approach.
A base class for all the filters working on a box neighborhood.
#define itkConceptMacro(name, concept)