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{
41template <typename TInputImage, typename TOutputImage>
42class ITK_TEMPLATE_EXPORT ConvertLabelMapFilter : public LabelMapFilter<TInputImage, TOutputImage>
43{
44public:
45 ITK_DISALLOW_COPY_AND_MOVE(ConvertLabelMapFilter);
46
52
54 using InputImageType = TInputImage;
55 using OutputImageType = TOutputImage;
56 using InputImagePointer = typename InputImageType::Pointer;
57 using InputImageConstPointer = typename InputImageType::ConstPointer;
58 using InputImageRegionType = typename InputImageType::RegionType;
59 using InputImagePixelType = typename InputImageType::PixelType;
60 using LabelObjectType = typename InputImageType::LabelObjectType;
61
62 using OutputImagePointer = typename OutputImageType::Pointer;
63 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
64 using OutputImageRegionType = typename OutputImageType::RegionType;
65 using OutputImagePixelType = typename OutputImageType::PixelType;
66 using IndexType = typename OutputImageType::IndexType;
67 using OutputLabelObjectType = typename OutputImageType::LabelObjectType;
68
70 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
71 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
72
74 itkNewMacro(Self);
75
77 itkOverrideGetNameOfClassMacro(ConvertLabelMapFilter);
78
79protected:
81 ~ConvertLabelMapFilter() override = default;
82
83 void
84 GenerateData() override;
85}; // end of class
86} // end namespace itk
87
88#ifndef ITK_MANUAL_INSTANTIATION
89# include "itkConvertLabelMapFilter.hxx"
90#endif
91
92#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....