ITK  4.2.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 protected:
86 
88  void ThreadedGenerateData(const OutputImageRegionType &
89  outputRegionForThread,
90  ThreadIdType threadId);
91 
92 private:
93  BoxSigmaImageFilter(const Self &); //purposely not implemented
94  void operator=(const Self &); //purposely not implemented
95 }; // end of class
96 } // end namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 #include "itkBoxSigmaImageFilter.hxx"
100 #endif
101 
102 #endif
103