ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkStatisticsRelabelLabelMapFilter.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 itkStatisticsRelabelLabelMapFilter_h
19 #define itkStatisticsRelabelLabelMapFilter_h
20 
24 
25 namespace itk
26 {
44 template< typename TImage >
45 class ITK_TEMPLATE_EXPORT StatisticsRelabelLabelMapFilter:
46  public ShapeRelabelLabelMapFilter< TImage >
47 {
48 public:
49  ITK_DISALLOW_COPY_AND_ASSIGN(StatisticsRelabelLabelMapFilter);
50 
56 
58  using ImageType = TImage;
59  using ImagePointer = typename ImageType::Pointer;
60  using ImageConstPointer = typename ImageType::ConstPointer;
61  using PixelType = typename ImageType::PixelType;
62  using IndexType = typename ImageType::IndexType;
63  using LabelObjectType = typename ImageType::LabelObjectType;
64 
65  using AttributeType = typename LabelObjectType::AttributeType;
66 
68  static constexpr unsigned int ImageDimension = TImage::ImageDimension;
69 
71  itkNewMacro(Self);
72 
76 
77 #ifdef ITK_USE_CONCEPT_CHECKING
78  // Begin concept checking
79 /* itkConceptMacro(InputEqualityComparableCheck,
80  (Concept::EqualityComparable<InputImagePixelType>));
81  itkConceptMacro(IntConvertibleToInputCheck,
82  (Concept::Convertible<int, InputImagePixelType>));
83  itkConceptMacro(InputOStreamWritableCheck,
84  (Concept::OStreamWritable<InputImagePixelType>));*/
85 // End concept checking
86 #endif
87 
88 protected:
90  ~StatisticsRelabelLabelMapFilter() override = default;
91 
92  void GenerateData() override;
93 }; // end of class
94 } // end namespace itk
95 
96 #ifndef ITK_MANUAL_INSTANTIATION
97 #include "itkStatisticsRelabelLabelMapFilter.hxx"
98 #endif
99 
100 #endif
Relabels objects according to their shape attributes.
Light weight base class for most itk classes.
typename ImageType::ConstPointer ImageConstPointer
relabel objects according to their shape attributes
typename LabelObjectType::AttributeType AttributeType
typename ImageType::IndexType IndexType
typename ImageType::PixelType PixelType
typename ImageType::LabelObjectType LabelObjectType