ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkTobogganImageFilter.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 __itkTobogganImageFilter_h
19 #define __itkTobogganImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
38 template< class TInputImage >
39 class ITK_EXPORT TobogganImageFilter:
40  public ImageToImageFilter<
41  TInputImage,
42  Image< IdentifierType, TInputImage::ImageDimension > >
43 {
44 public:
47 
49  typedef TInputImage InputImageType;
50 
52  itkStaticConstMacro(NDimensions, unsigned int, TInputImage::ImageDimension);
53 
56 
59 
61  typedef typename InputImageType::PixelType InputImagePixelType;
62 
64  enum { ImageDimension = InputImageType::ImageDimension };
65 
67  typedef typename InputImageType::RegionType RegionType;
68  typedef typename InputImageType::SizeType SizeType;
69  typedef typename InputImageType::IndexType IndexType;
70  typedef typename InputImageType::Pointer InputImagePointer;
71  typedef typename InputImageType::ConstPointer InputImageConstPointer;
73 
76 
78  typedef typename InputImageType::PixelType ScalarType;
79 
82 
85 
87  itkNewMacro(Self);
88 
90  void GenerateData();
91 
92  void GenerateInputRequestedRegion();
93 
94  void EnlargeOutputRequestedRegion(DataObject *);
95 
99 
100 #ifdef ITK_USE_CONCEPT_CHECKING
101 
102  itkConceptMacro( LessThanComparableCheck,
104  itkConceptMacro( OStreamWritableCheck,
106 
108 #endif
109 
110 protected:
113  void PrintSelf(std::ostream & os, Indent indent) const;
114 
115 private:
116  TobogganImageFilter(const Self &); //purposely not implemented
117  void operator=(const Self &); //purposely not implemented
118 }; // end of class
119 } // end namespace itk
120 
121 #ifndef ITK_MANUAL_INSTANTIATION
122 #include "itkTobogganImageFilter.hxx"
123 #endif
124 
125 #endif
126