ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkLabelSetDilateImageFilter.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 itkLabelSetDilateImageFilter_h
19 #define itkLabelSetDilateImageFilter_h
20 
22 #include "itkNumericTraits.h"
23 
24 namespace itk
25 {
39 template< typename TInputImage,
40  typename TOutputImage = TInputImage >
41 class ITK_EXPORT LabelSetDilateImageFilter:
42  public LabelSetMorphBaseImageFilter< TInputImage, true, TOutputImage >
43 {
44 public:
45 
51 
53  itkNewMacro(Self);
54 
57 
59  typedef TInputImage InputImageType;
60  typedef TOutputImage OutputImageType;
61  typedef typename TInputImage::PixelType PixelType;
63  typedef typename TOutputImage::PixelType OutputPixelType;
65 
67  typedef typename TInputImage::Pointer InputImagePointer;
68  typedef typename TInputImage::ConstPointer InputImageConstPointer;
71 
72  typedef typename OutputImageType::RegionType OutputImageRegionType;
73 
75  itkStaticConstMacro(ImageDimension, unsigned int,
76  TInputImage::ImageDimension);
77  itkStaticConstMacro(OutputImageDimension, unsigned int,
78  TOutputImage::ImageDimension);
79  itkStaticConstMacro(InputImageDimension, unsigned int,
80  TInputImage::ImageDimension);
81 protected:
85 
86  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId) ITK_OVERRIDE;
87 
88 private:
89  LabelSetDilateImageFilter(const Self &); //purposely not implemented
90  void operator=(const Self &); //purposely not implemented
91 
92  typedef typename Superclass::DistanceImageType DistanceImageType;
93 };
94 } // end namespace itk
95 
96 #ifndef ITK_MANUAL_INSTANTIATION
97 #include "itkLabelSetDilateImageFilter.hxx"
98 #endif
99 
100 #endif
OutputImageType::RegionType OutputImageRegionType
Superclass::DistanceImageType DistanceImageType
Class for binary morphological erosion of label images.
Base class for all process objects that output image data.
Base class for binary morphological erosion of label images.
NumericTraits< PixelType >::FloatType RealType
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
NumericTraits< PixelType >::ScalarRealType ScalarRealType
TInputImage::ConstPointer InputImageConstPointer
Define additional traits for native types such as int or float.
LabelSetMorphBaseImageFilter< TInputImage, true, TOutputImage > Superclass