ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkConvertLabelMapFilter.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 itkConvertLabelMapFilter_h
19 #define itkConvertLabelMapFilter_h
20 
21 #include "itkLabelMapFilter.h"
22 
23 namespace itk
24 {
42 template< typename TInputImage, typename TOutputImage >
43 class ITK_TEMPLATE_EXPORT ConvertLabelMapFilter:
44  public LabelMapFilter< TInputImage, TOutputImage >
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_ASSIGN(ConvertLabelMapFilter);
48 
54 
56  using InputImageType = TInputImage;
57  using OutputImageType = TOutputImage;
58  using InputImagePointer = typename InputImageType::Pointer;
59  using InputImageConstPointer = typename InputImageType::ConstPointer;
61  using InputImagePixelType = typename InputImageType::PixelType;
62  using LabelObjectType = typename InputImageType::LabelObjectType;
63 
64  using OutputImagePointer = typename OutputImageType::Pointer;
65  using OutputImageConstPointer = typename OutputImageType::ConstPointer;
67  using OutputImagePixelType = typename OutputImageType::PixelType;
69  using OutputLabelObjectType = typename OutputImageType::LabelObjectType;
70 
72  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
73  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
74 
76  itkNewMacro(Self);
77 
80 
81 protected:
82  ConvertLabelMapFilter() = default;
83  ~ConvertLabelMapFilter() override = default;
84 
85  void GenerateData() override;
86 }; // end of class
87 } // end namespace itk
88 
89 #ifndef ITK_MANUAL_INSTANTIATION
90 #include "itkConvertLabelMapFilter.hxx"
91 #endif
92 
93 #endif
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::LabelObjectType OutputLabelObjectType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Converts the LabelObjects of a LabelMap to a differente type of LabelObejct.
Base class for all process objects that output image data.
typename OutputImageType::ConstPointer OutputImageConstPointer
typename OutputImageType::IndexType IndexType
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename InputImageType::LabelObjectType LabelObjectType
Base class for filters that take an image as input and overwrite that image as the output...
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::ConstPointer InputImageConstPointer