ITK  4.4.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< class TInputImage, class TOutputImage = TInputImage >
41 class ITK_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;
62  typedef typename TInputImage::IndexType IndexType;
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 
77  itkConceptMacro( SameDimension,
78  ( Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension),
79  itkGetStaticConstMacro(OutputImageDimension) > ) );
80 
82 #endif
83 
84 protected:
87 
89  void ThreadedGenerateData(const OutputImageRegionType &
90  outputRegionForThread,
91  ThreadIdType threadId);
92 
93 private:
94  BoxSigmaImageFilter(const Self &); //purposely not implemented
95  void operator=(const Self &); //purposely not implemented
96 }; // end of class
97 } // end namespace itk
98 
99 #ifndef ITK_MANUAL_INSTANTIATION
100 #include "itkBoxSigmaImageFilter.hxx"
101 #endif
102 
103 #endif
104