ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkLabelMapToLabelImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 >
47  public LabelMapFilter< TInputImage, TOutputImage >
48 {
49 public:
55 
63 
69  typedef typename OutputImageType::IndexType IndexType;
70 
72  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
73  itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
75 
77  itkNewMacro(Self);
78 
81 
82 #ifdef ITK_USE_CONCEPT_CHECKING
83  itkConceptMacro( SameDimensionCheck,
85 #endif
86 
87 protected:
90 
91  virtual void BeforeThreadedGenerateData() ITK_OVERRIDE;
92 
93  virtual void ThreadedProcessLabelObject(LabelObjectType *labelObject) ITK_OVERRIDE;
94 
95 private:
96  LabelMapToLabelImageFilter(const Self &) ITK_DELETE_FUNCTION;
97  void operator=(const Self &) ITK_DELETE_FUNCTION;
99 }; // end of class
100 } // end namespace itk
101 
102 #ifndef ITK_MANUAL_INSTANTIATION
103 #include "itkLabelMapToLabelImageFilter.hxx"
104 #endif
105 
106 #endif
virtual void BeforeThreadedGenerateData() override
Superclass::InputImageRegionType InputImageRegionType
Superclass::OutputImagePixelType OutputImagePixelType
OutputImageType::RegionType OutputImageRegionType
virtual void ThreadedProcessLabelObject(LabelObjectType *labelObject) override
Base class for all process objects that output image data.
OutputImageType::PixelType OutputImagePixelType
Superclass::LabelObjectType LabelObjectType
Superclass::InputImagePixelType InputImagePixelType
Superclass::OutputImagePointer OutputImagePointer
Superclass::OutputImageRegionType OutputImageRegionType
Superclass::InputImagePixelType InputImagePixelType
Superclass::InputImageConstPointer InputImageConstPointer
Superclass::OutputImageType OutputImageType
Base class for filters that take an image as input and overwrite that image as the output...
static const unsigned int OutputImageDimension
LabelMapFilter< TInputImage, TOutputImage > Superclass
Superclass::InputImageType InputImageType
OutputImageType::ConstPointer OutputImageConstPointer
Superclass::InputImagePointer InputImagePointer
InputImageType::LabelObjectType LabelObjectType
Superclass::InputImageConstPointer InputImageConstPointer
Superclass::InputImageRegionType InputImageRegionType
OutputImageType::Pointer OutputImagePointer
Superclass::InputImagePointer InputImagePointer
TOutputImage OutputImageType
Superclass::OutputImageConstPointer OutputImageConstPointer
#define itkConceptMacro(name, concept)
Converts a LabelMap to a labeled image.