ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkBoxImageFilter.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 __itkBoxImageFilter_h
19 #define __itkBoxImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 #include "itkCastImageFilter.h"
23 
24 namespace itk
25 {
39 template< typename TInputImage, typename TOutputImage >
41  public ImageToImageFilter< TInputImage, TOutputImage >
42 {
43 public:
49 
51  itkNewMacro(Self);
52 
54  itkTypeMacro(BoxImageFilter,
56 
58  typedef TInputImage InputImageType;
59  typedef typename TInputImage::RegionType RegionType;
60  typedef typename TInputImage::SizeType SizeType;
61  typedef typename TInputImage::IndexType IndexType;
62  typedef typename TInputImage::OffsetType OffsetType;
63 
64  typedef typename TInputImage::PixelType InputPixelType;
65 
66  typedef TOutputImage OutputImageType;
67  typedef typename TOutputImage::PixelType OutputPixelType;
68 
70  itkStaticConstMacro(ImageDimension, unsigned int,
71  TInputImage::ImageDimension);
72 
74  typedef typename TInputImage::SizeType RadiusType;
76 
77  virtual void SetRadius(const RadiusType & radius);
78 
79  virtual void SetRadius(const RadiusValueType & radius);
80 
81  itkGetConstReferenceMacro(Radius, RadiusType);
82 
83 protected:
86 
87  virtual void GenerateInputRequestedRegion();
88 
89  virtual void PrintSelf(std::ostream & os, Indent indent) const;
90 
91 private:
92  BoxImageFilter(const Self &); //purposely not implemented
93  void operator=(const Self &); //purposely not implemented
94 
96 };
97 }
98 
99 #ifndef ITK_MANUAL_INSTANTIATION
100 #include "itkBoxImageFilter.hxx"
101 #endif
102 
103 #endif
Light weight base class for most itk classes.
TInputImage InputImageType
TInputImage::RegionType RegionType
SmartPointer< Self > Pointer
TInputImage::PixelType InputPixelType
static const unsigned int ImageDimension
TOutputImage::PixelType OutputPixelType
TInputImage::IndexType IndexType
unsigned long SizeValueType
Definition: itkIntTypes.h:143
virtual void SetRadius(const RadiusType &radius)
TInputImage::OffsetType OffsetType
TOutputImage OutputImageType
A base class for all the filters working on a box neighborhood.
virtual void GenerateInputRequestedRegion()
SmartPointer< const Self > ConstPointer
TInputImage::SizeValueType RadiusValueType
TInputImage::SizeType RadiusType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
TInputImage::SizeType SizeType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void PrintSelf(std::ostream &os, Indent indent) const
void operator=(const Self &)