ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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;
57 using InputImagePointer = typename InputImageType::Pointer;
58 using InputImageConstPointer = typename InputImageType::ConstPointer;
59 using InputImageRegionType = typename InputImageType::RegionType;
60 using InputImagePixelType = typename InputImageType::PixelType;
61 using LabelObjectType = typename InputImageType::LabelObjectType;
62
63 using OutputImagePointer = typename OutputImageType::Pointer;
64 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
65 using OutputImageRegionType = typename OutputImageType::RegionType;
66 using OutputImagePixelType = typename OutputImageType::PixelType;
67 using IndexType = typename OutputImageType::IndexType;
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
typename OutputImageType::LabelObjectType OutputLabelObjectType
typename OutputImageType::RegionType OutputImageRegionType
typename OutputImageType::IndexType IndexType
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::RegionType InputImageRegionType
static constexpr unsigned int OutputImageDimension
typename OutputImageType::Pointer OutputImagePointer
LabelMapFilter< TInputImage, TOutputImage > Superclass
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::LabelObjectType LabelObjectType
void GenerateData() override
typename InputImageType::Pointer InputImagePointer
~ConvertLabelMapFilter() override=default
static constexpr unsigned int InputImageDimension
typename OutputImageType::ConstPointer OutputImageConstPointer
SmartPointer< const Self > ConstPointer
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....