ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkRelabelLabelMapFilter.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 itkRelabelLabelMapFilter_h
19 #define itkRelabelLabelMapFilter_h
20 
23 
24 namespace itk
25 {
45 template< typename TImage >
47  public AttributeRelabelLabelMapFilter< TImage, typename Functor::LabelLabelObjectAccessor<typename TImage::LabelObjectType> >
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(RelabelLabelMapFilter);
51 
58 
60  using ImageType = TImage;
61  using ImagePointer = typename ImageType::Pointer;
62  using ImageConstPointer = typename ImageType::ConstPointer;
63  using PixelType = typename ImageType::PixelType;
64  using IndexType = typename ImageType::IndexType;
65  using LabelObjectType = typename ImageType::LabelObjectType;
66 
68  static constexpr unsigned int ImageDimension = TImage::ImageDimension;
69 
71  itkNewMacro(Self);
72 
75 
76 #ifdef ITK_USE_CONCEPT_CHECKING
77  // Begin concept checking
78 /* itkConceptMacro(InputEqualityComparableCheck,
79  (Concept::EqualityComparable<InputImagePixelType>));
80  itkConceptMacro(IntConvertibleToInputCheck,
81  (Concept::Convertible<int, InputImagePixelType>));
82  itkConceptMacro(InputOStreamWritableCheck,
83  (Concept::OStreamWritable<InputImagePixelType>));*/
84 // End concept checking
85 #endif
86 
87 protected:
89  {
90  this->SetReverseOrdering( true );
91  }
92  ~RelabelLabelMapFilter() override = default;
93 }; // end of class
94 } // end namespace itk
95 
96 
97 #endif
~RelabelLabelMapFilter() override=default
Light weight base class for most itk classes.
This filter relabels the LabelObjects; the new labels are arranged consecutively with consideration f...
typename ImageType::ConstPointer ImageConstPointer
static constexpr unsigned int ImageDimension
typename ImageType::PixelType PixelType
typename ImageType::IndexType IndexType
typename ImageType::LabelObjectType LabelObjectType
relabel objects according to their shape attributes
typename ImageType::Pointer ImagePointer