ITK  6.0.0
Insight Toolkit
itkConvertLabelMapFilter.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 itkConvertLabelMapFilter_h
19#define itkConvertLabelMapFilter_h
20
21#include "itkLabelMapFilter.h"
22
23namespace itk
24{
42template <typename TInputImage, typename TOutputImage>
43class ITK_TEMPLATE_EXPORT ConvertLabelMapFilter : public LabelMapFilter<TInputImage, TOutputImage>
44{
45public:
46 ITK_DISALLOW_COPY_AND_MOVE(ConvertLabelMapFilter);
47
53
55 using InputImageType = TInputImage;
56 using OutputImageType = TOutputImage;
60 using InputImagePixelType = typename InputImageType::PixelType;
61 using LabelObjectType = typename InputImageType::LabelObjectType;
62
66 using OutputImagePixelType = typename OutputImageType::PixelType;
68 using OutputLabelObjectType = typename OutputImageType::LabelObjectType;
69
71 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
72 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
73
75 itkNewMacro(Self);
76
78 itkOverrideGetNameOfClassMacro(ConvertLabelMapFilter);
79
80protected:
82 ~ConvertLabelMapFilter() override = default;
83
84 void
85 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
Converts the LabelObjects of a LabelMap to a different type of LabelObject.
typename OutputImageType::LabelObjectType OutputLabelObjectType
typename OutputImageType::IndexType IndexType
typename InputImageType::LabelObjectType LabelObjectType
void GenerateData() override
~ConvertLabelMapFilter() override=default
typename OutputImageType::ConstPointer OutputImageConstPointer
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::Pointer InputImagePointer
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::RegionType InputImageRegionType
Base class for filters that take an image as input and overwrite that image as the output.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....