ITK  5.2.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  * 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 : public LabelMapFilter<TInputImage, TOutputImage>
47 {
48 public:
49  ITK_DISALLOW_COPY_AND_MOVE(LabelMapToLabelImageFilter);
50 
56 
58  using InputImageType = typename Superclass::InputImageType;
59  using InputImagePointer = typename Superclass::InputImagePointer;
60  using InputImageConstPointer = typename Superclass::InputImageConstPointer;
61  using InputImageRegionType = typename Superclass::InputImageRegionType;
62  using InputImagePixelType = typename Superclass::InputImagePixelType;
63  using LabelObjectType = typename Superclass::LabelObjectType;
64 
65  using OutputImageType = typename Superclass::OutputImageType;
66  using OutputImagePointer = typename Superclass::OutputImagePointer;
67  using OutputImageConstPointer = typename Superclass::OutputImageConstPointer;
68  using OutputImageRegionType = typename Superclass::OutputImageRegionType;
69  using OutputImagePixelType = 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 
81 
82 #ifdef ITK_USE_CONCEPT_CHECKING
84 #endif
85 
86 protected:
88  ~LabelMapToLabelImageFilter() override = default;
89 
90  void
91  BeforeThreadedGenerateData() override;
92 
93  void
94  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
itk::LabelMapFilter::OutputImageConstPointer
typename OutputImageType::ConstPointer OutputImageConstPointer
Definition: itkLabelMapFilter.h:84
itk::ImageSource::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition: itkImageSource.h:91
itk::SmartPointer< Self >
itk::LabelMapFilter::LabelObjectType
typename InputImageType::LabelObjectType LabelObjectType
Definition: itkLabelMapFilter.h:80
itkLabelMapFilter.h
itk::Concept::SameDimension
Definition: itkConceptChecking.h:694
itk::ImageToImageFilter::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition: itkImageToImageFilter.h:133
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::ImageToImageFilter::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkImageToImageFilter.h:130
itk::LabelMapFilter
Base class for filters that take an image as input and overwrite that image as the output.
Definition: itkLabelMapFilter.h:57
itk::LabelMapToLabelImageFilter::OutputImageType
typename Superclass::OutputImageType OutputImageType
Definition: itkLabelMapToLabelImageFilter.h:65
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itk::LabelMapToLabelImageFilter::m_OutputImage
OutputImageType * m_OutputImage
Definition: itkLabelMapToLabelImageFilter.h:97
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::LabelMapToLabelImageFilter::IndexType
typename OutputImageType::IndexType IndexType
Definition: itkLabelMapToLabelImageFilter.h:70
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::ImageSource::OutputImagePixelType
typename OutputImageType::PixelType OutputImagePixelType
Definition: itkImageSource.h:93
itk::LabelMapToLabelImageFilter
Converts a LabelMap to a labeled image.
Definition: itkLabelMapToLabelImageFilter.h:46
itk::ImageToImageFilter::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition: itkImageToImageFilter.h:132
itk::ImageToImageFilter::InputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
Definition: itkImageToImageFilter.h:131