ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkLabelSetErodeImageFilter.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 itkLabelSetErodeImageFilter_h
19 #define itkLabelSetErodeImageFilter_h
20 
22 #include "itkNumericTraits.h"
23 
24 namespace itk
25 {
41 template< typename TInputImage,
42  typename TOutputImage = TInputImage >
43 class ITK_EXPORT LabelSetErodeImageFilter:
44  public LabelSetMorphBaseImageFilter< TInputImage, false, TOutputImage >
45 {
46 public:
47 
53 
55  itkNewMacro(Self);
56 
59 
61  typedef TInputImage InputImageType;
62  typedef TOutputImage OutputImageType;
63  typedef typename TInputImage::PixelType PixelType;
65  typedef typename TOutputImage::PixelType OutputPixelType;
67 
69  typedef typename TInputImage::Pointer InputImagePointer;
70  typedef typename TInputImage::ConstPointer InputImageConstPointer;
71  typedef typename TInputImage::SizeType InputSizeType;
72  typedef typename TOutputImage::SizeType OutputSizeType;
73 
76 
79  typedef typename OutputImageType::RegionType OutputImageRegionType;
81  itkStaticConstMacro(ImageDimension, unsigned int,
82  TInputImage::ImageDimension);
83  itkStaticConstMacro(OutputImageDimension, unsigned int,
84  TOutputImage::ImageDimension);
85  itkStaticConstMacro(InputImageDimension, unsigned int,
86  TInputImage::ImageDimension);
87 protected:
91 
92  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId) ITK_OVERRIDE;
93 
94  // Override since the filter produces the entire dataset.
95 private:
96  LabelSetErodeImageFilter(const Self &); //purposely not implemented
97  void operator=(const Self &); //purposely not implemented
98 
99  typedef typename Superclass::DistanceImageType DistanceImageType;
100 };
101 } // end namespace itk
102 
103 #ifndef ITK_MANUAL_INSTANTIATION
104 #include "itkLabelSetErodeImageFilter.hxx"
105 #endif
106 
107 #endif
Superclass::DistanceImageType DistanceImageType
Base class for all process objects that output image data.
Base class for binary morphological erosion of label images.
NumericTraits< PixelType >::FloatType RealType
OutputImageType::RegionType OutputImageRegionType
Class for binary morphological erosion of label images.
itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > RadiusType
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
LabelSetMorphBaseImageFilter< TInputImage, false, TOutputImage > Superclass
TInputImage::ConstPointer InputImageConstPointer
SmartPointer< const Self > ConstPointer
Define additional traits for native types such as int or float.
NumericTraits< PixelType >::ScalarRealType ScalarRealType