ITK  5.0.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  ITK_DISALLOW_COPY_AND_ASSIGN(LabelSetErodeImageFilter);
48 
54 
56  itkNewMacro(Self);
57 
60 
62  using InputImageType = TInputImage;
63  using OutputImageType = TOutputImage;
64  using PixelType = typename TInputImage::PixelType;
66  using OutputPixelType = typename TOutputImage::PixelType;
68 
70  using InputImagePointer = typename TInputImage::Pointer;
71  using InputImageConstPointer = typename TInputImage::ConstPointer;
74 
77 
82  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
83  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
84  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
85 protected:
87  { this->DynamicMultiThreadingOn(); }
90 
91  void DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
92 
93  // Override since the filter produces the entire dataset.
94 private:
95  using DistanceImageType = typename Superclass::DistanceImageType;
96 };
97 } // end namespace itk
98 
99 #ifndef ITK_MANUAL_INSTANTIATION
100 #include "itkLabelSetErodeImageFilter.hxx"
101 #endif
102 
103 #endif
typename TOutputImage::SizeType OutputSizeType
Define numeric traits for std::vector.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename TInputImage::PixelType PixelType
Base class for all process objects that output image data.
Base class for binary morphological erosion of label images.
typename NumericTraits< PixelType >::ScalarRealType ScalarRealType
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
Class for binary morphological erosion of label images.
typename NumericTraits< PixelType >::FloatType RealType
typename Superclass::DistanceImageType DistanceImageType
typename TInputImage::SizeType InputSizeType
typename itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > RadiusType
typename TOutputImage::PixelType OutputPixelType
typename InputImageType::ConstPointer InputImageConstPointer