ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkBinaryThinningImageFilter.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 __itkBinaryThinningImageFilter_h
19 #define __itkBinaryThinningImageFilter_h
20 
22 #include "itkImageToImageFilter.h"
24 
25 namespace itk
26 {
60 template< class TInputImage, class TOutputImage >
61 class ITK_EXPORT BinaryThinningImageFilter:
62  public ImageToImageFilter< TInputImage, TOutputImage >
63 {
64 public:
70 
72  itkNewMacro(Self);
73 
76 
78  typedef TInputImage InputImageType;
79 
81  typedef TOutputImage OutputImageType;
82 
84  typedef typename InputImageType::RegionType RegionType;
85 
87  typedef typename RegionType::IndexType IndexType;
88 
90  typedef typename InputImageType::PixelType PixelType;
91 
93  typedef typename RegionType::SizeType SizeType;
94 
96  typedef typename InputImageType::ConstPointer InputImagePointer;
97 
99  typedef typename OutputImageType::Pointer OutputImagePointer;
100 
102  typedef typename Superclass::OutputImagePixelType OutputImagePixelType;
103 
106 
108  OutputImageType * GetThinning(void);
109 
111  itkStaticConstMacro(InputImageDimension, unsigned int,
112  TInputImage::ImageDimension);
113  itkStaticConstMacro(OutputImageDimension, unsigned int,
114  TOutputImage::ImageDimension);
116 
117 #ifdef ITK_USE_CONCEPT_CHECKING
118 
119  itkConceptMacro( SameDimensionCheck,
121  itkConceptMacro( InputAdditiveOperatorsCheck,
123  itkConceptMacro( InputConvertibleToIntCheck,
125  itkConceptMacro( IntConvertibleToInputCheck,
127  itkConceptMacro( SameTypeCheck,
129 
131 #endif
132 protected:
135 
137  void GenerateData();
138 
140  void PrepareData();
141 
143  void ComputeThinImage();
144 
145 private:
146  BinaryThinningImageFilter(const Self &); //purposely not implemented
147  void operator=(const Self &); //purposely not implemented
148 }; // end of BinaryThinningImageFilter
149  // class
150 } //end namespace itk
151 
152 #ifndef ITK_MANUAL_INSTANTIATION
153 #include "itkBinaryThinningImageFilter.hxx"
154 #endif
155 
156 #endif
157