ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLabelMapToLabelImageFilter.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 itkLabelMapToLabelImageFilter_h
19 #define itkLabelMapToLabelImageFilter_h
20 
21 #include "itkLabelMapFilter.h"
22 
23 namespace itk
24 {
45 template< typename TInputImage, typename TOutputImage >
46 class ITK_TEMPLATE_EXPORT LabelMapToLabelImageFilter:
47  public LabelMapFilter< TInputImage, TOutputImage >
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(LabelMapToLabelImageFilter);
51 
57 
59  using InputImageType = typename Superclass::InputImageType;
60  using InputImagePointer = typename Superclass::InputImagePointer;
61  using InputImageConstPointer = typename Superclass::InputImageConstPointer;
62  using InputImageRegionType = typename Superclass::InputImageRegionType;
63  using InputImagePixelType = typename Superclass::InputImagePixelType;
64  using LabelObjectType = typename Superclass::LabelObjectType;
65 
66  using OutputImageType = typename Superclass::OutputImageType;
67  using OutputImagePointer = typename Superclass::OutputImagePointer;
68  using OutputImageConstPointer = typename Superclass::OutputImageConstPointer;
69  using OutputImageRegionType = typename Superclass::OutputImageRegionType;
70  using OutputImagePixelType = typename Superclass::OutputImagePixelType;
72 
74  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
75  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
76 
78  itkNewMacro(Self);
79 
82 
83 #ifdef ITK_USE_CONCEPT_CHECKING
84  itkConceptMacro( SameDimensionCheck,
86 #endif
87 
88 protected:
90  ~LabelMapToLabelImageFilter() override = default;
91 
92  void BeforeThreadedGenerateData() override;
93 
94  void ThreadedProcessLabelObject(LabelObjectType *labelObject) override;
95 
96 private:
98 }; // end of class
99 } // end namespace itk
100 
101 #ifndef ITK_MANUAL_INSTANTIATION
102 #include "itkLabelMapToLabelImageFilter.hxx"
103 #endif
104 
105 #endif
typename OutputImageType::Pointer OutputImagePointer
typename InputImageType::LabelObjectType LabelObjectType
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.
typename OutputImageType::ConstPointer OutputImageConstPointer
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
Base class for filters that take an image as input and overwrite that image as the output...
typename InputImageType::RegionType InputImageRegionType
typename Superclass::OutputImageType OutputImageType
#define itkConceptMacro(name, concept)
typename OutputImageType::IndexType IndexType
typename InputImageType::ConstPointer InputImageConstPointer
Converts a LabelMap to a labeled image.