ITK  6.0.0
Insight Toolkit
itkLabelMapToLabelImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
23namespace itk
24{
45template <typename TInputImage, typename TOutputImage>
46class ITK_TEMPLATE_EXPORT LabelMapToLabelImageFilter : public LabelMapFilter<TInputImage, TOutputImage>
47{
48public:
49 ITK_DISALLOW_COPY_AND_MOVE(LabelMapToLabelImageFilter);
50
56
58 using typename Superclass::InputImageType;
59 using typename Superclass::InputImagePointer;
60 using typename Superclass::InputImageConstPointer;
61 using typename Superclass::InputImageRegionType;
62 using typename Superclass::InputImagePixelType;
63 using LabelObjectType = typename Superclass::LabelObjectType;
64
65 using typename Superclass::OutputImageType;
66 using typename Superclass::OutputImagePointer;
67 using typename Superclass::OutputImageConstPointer;
68 using typename Superclass::OutputImageRegionType;
69 using typename Superclass::OutputImagePixelType;
71
73 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
74 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
75
77 itkNewMacro(Self);
78
80 itkOverrideGetNameOfClassMacro(LabelMapToLabelImageFilter);
81
82#ifdef ITK_USE_CONCEPT_CHECKING
84#endif
85
86protected:
88 ~LabelMapToLabelImageFilter() override = default;
89
90 void
92
93 void
95}; // end of class
96} // end namespace itk
97
98#ifndef ITK_MANUAL_INSTANTIATION
99# include "itkLabelMapToLabelImageFilter.hxx"
100#endif
101
102#endif
Base class for all process objects that output image data.
Base class for filters that take an image as input and overwrite that image as the output.
typename InputImageType::LabelObjectType LabelObjectType
Converts a LabelMap to a labeled image.
typename OutputImageType::IndexType IndexType
void BeforeThreadedGenerateData() override
~LabelMapToLabelImageFilter() override=default
void ThreadedProcessLabelObject(LabelObjectType *labelObject) override
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....