ITK  5.2.0
Insight Toolkit
itkRelabelLabelMapFilter.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 itkRelabelLabelMapFilter_h
19 #define itkRelabelLabelMapFilter_h
20 
23 
24 namespace itk
25 {
46 template <typename TImage>
48  : public AttributeRelabelLabelMapFilter<TImage,
49  typename Functor::LabelLabelObjectAccessor<typename TImage::LabelObjectType>>
50 {
51 public:
52  ITK_DISALLOW_COPY_AND_ASSIGN(RelabelLabelMapFilter);
53 
56  using Superclass =
61 
63  using ImageType = TImage;
64  using ImagePointer = typename ImageType::Pointer;
65  using ImageConstPointer = typename ImageType::ConstPointer;
66  using PixelType = typename ImageType::PixelType;
67  using IndexType = typename ImageType::IndexType;
68  using LabelObjectType = typename ImageType::LabelObjectType;
69 
71  static constexpr unsigned int ImageDimension = TImage::ImageDimension;
72 
74  itkNewMacro(Self);
75 
78 
79 #ifdef ITK_USE_CONCEPT_CHECKING
80  // Begin concept checking
81 /* itkConceptMacro(InputEqualityComparableCheck,
82  (Concept::EqualityComparable<InputImagePixelType>));
83  itkConceptMacro(IntConvertibleToInputCheck,
84  (Concept::Convertible<int, InputImagePixelType>));
85  itkConceptMacro(InputOStreamWritableCheck,
86  (Concept::OStreamWritable<InputImagePixelType>));*/
87 // End concept checking
88 #endif
89 
90 protected:
92  ~RelabelLabelMapFilter() override = default;
93 }; // end of class
94 } // end namespace itk
95 
96 
97 #endif
itk::RelabelLabelMapFilter::ImageType
TImage ImageType
Definition: itkRelabelLabelMapFilter.h:63
itk::RelabelLabelMapFilter::IndexType
typename ImageType::IndexType IndexType
Definition: itkRelabelLabelMapFilter.h:67
itkAttributeRelabelLabelMapFilter.h
itk::SmartPointer< Self >
itk::RelabelLabelMapFilter
This filter relabels the LabelObjects; the new labels are arranged consecutively with consideration f...
Definition: itkRelabelLabelMapFilter.h:47
itk::RelabelLabelMapFilter::ImagePointer
typename ImageType::Pointer ImagePointer
Definition: itkRelabelLabelMapFilter.h:64
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::RelabelLabelMapFilter::~RelabelLabelMapFilter
~RelabelLabelMapFilter() override=default
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::AttributeRelabelLabelMapFilter< TImage, Functor::LabelLabelObjectAccessor< TImage::LabelObjectType > >::SetReverseOrdering
virtual void SetReverseOrdering(bool _arg)
itk::RelabelLabelMapFilter::ImageDimension
static constexpr unsigned int ImageDimension
Definition: itkRelabelLabelMapFilter.h:71
itk::RelabelLabelMapFilter::ImageConstPointer
typename ImageType::ConstPointer ImageConstPointer
Definition: itkRelabelLabelMapFilter.h:65
itkLabelObjectAccessors.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::Functor::LabelLabelObjectAccessor
Definition: itkLabelObjectAccessors.h:38
itk::AttributeRelabelLabelMapFilter
relabel objects according to their shape attributes
Definition: itkAttributeRelabelLabelMapFilter.h:47
itk::RelabelLabelMapFilter::RelabelLabelMapFilter
RelabelLabelMapFilter()
Definition: itkRelabelLabelMapFilter.h:91
itk::RelabelLabelMapFilter::PixelType
typename ImageType::PixelType PixelType
Definition: itkRelabelLabelMapFilter.h:66
itk::RelabelLabelMapFilter::LabelObjectType
typename ImageType::LabelObjectType LabelObjectType
Definition: itkRelabelLabelMapFilter.h:68