ITK  4.13.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:
52  typedef AttributeRelabelLabelMapFilter< TImage,
57 
59  typedef TImage ImageType;
60  typedef typename ImageType::Pointer ImagePointer;
61  typedef typename ImageType::ConstPointer ImageConstPointer;
62  typedef typename ImageType::PixelType PixelType;
63  typedef typename ImageType::IndexType IndexType;
64  typedef typename ImageType::LabelObjectType LabelObjectType;
65 
67  itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension);
68 
70  itkNewMacro(Self);
71 
74 
75 #ifdef ITK_USE_CONCEPT_CHECKING
76  // Begin concept checking
77 /* itkConceptMacro(InputEqualityComparableCheck,
78  (Concept::EqualityComparable<InputImagePixelType>));
79  itkConceptMacro(IntConvertibleToInputCheck,
80  (Concept::Convertible<int, InputImagePixelType>));
81  itkConceptMacro(InputOStreamWritableCheck,
82  (Concept::OStreamWritable<InputImagePixelType>));*/
83 // End concept checking
84 #endif
85 
86 protected:
88  {
89  this->SetReverseOrdering( true );
90  }
91  ~RelabelLabelMapFilter() ITK_OVERRIDE {}
92 
93 private:
94  ITK_DISALLOW_COPY_AND_ASSIGN(RelabelLabelMapFilter);
95 }; // end of class
96 } // end namespace itk
97 
98 
99 #endif
Light weight base class for most itk classes.
This filter relabels the LabelObjects; the new labels are arranged consecutively with consideration f...
AttributeRelabelLabelMapFilter< TImage, typename Functor::LabelLabelObjectAccessor< typename TImage::LabelObjectType > > Superclass
static const unsigned int ImageDimension
ImageType::LabelObjectType LabelObjectType
ImageType::ConstPointer ImageConstPointer
relabel objects according to their shape attributes
SmartPointer< const Self > ConstPointer