ITK  4.4.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 
133 protected:
136 
138  void GenerateData();
139 
141  void PrepareData();
142 
144  void ComputeThinImage();
145 
146 private:
147  BinaryThinningImageFilter(const Self &); //purposely not implemented
148  void operator=(const Self &); //purposely not implemented
149 }; // end of BinaryThinningImageFilter
150  // class
151 } //end namespace itk
152 
153 #ifndef ITK_MANUAL_INSTANTIATION
154 #include "itkBinaryThinningImageFilter.hxx"
155 #endif
156 
157 #endif
158