ITK  5.0.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  ITK_DISALLOW_COPY_AND_ASSIGN(LabelSetDilateImageFilter);
46 
52 
54  itkNewMacro(Self);
55 
58 
60  using InputImageType = TInputImage;
61  using OutputImageType = TOutputImage;
62  using PixelType = typename TInputImage::PixelType;
64  using OutputPixelType = typename TOutputImage::PixelType;
66 
68  using InputImagePointer = typename TInputImage::Pointer;
69  using InputImageConstPointer = typename TInputImage::ConstPointer;
72 
74 
76  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
77  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
78  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
79 protected:
81  { this->DynamicMultiThreadingOn(); }
84 
85  void DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
86 
87 private:
88  using DistanceImageType = typename Superclass::DistanceImageType;
89 };
90 } // end namespace itk
91 
92 #ifndef ITK_MANUAL_INSTANTIATION
93 #include "itkLabelSetDilateImageFilter.hxx"
94 #endif
95 
96 #endif
typename NumericTraits< PixelType >::ScalarRealType ScalarRealType
Define numeric traits for std::vector.
Class for binary morphological erosion of label images.
typename TInputImage::PixelType PixelType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
Base class for binary morphological erosion of label images.
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename TOutputImage::PixelType OutputPixelType
typename Superclass::DistanceImageType DistanceImageType
typename TInputImage::SizeType InputSizeType
typename TOutputImage::SizeType OutputSizeType
typename InputImageType::ConstPointer InputImageConstPointer
typename NumericTraits< PixelType >::FloatType RealType