ITK  6.0.0
Insight Toolkit
itkStatisticsUniqueLabelMapFilter.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  * https://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 itkStatisticsUniqueLabelMapFilter_h
19 #define itkStatisticsUniqueLabelMapFilter_h
20 
23 
24 namespace itk
25 {
41 template <typename TImage>
42 class ITK_TEMPLATE_EXPORT StatisticsUniqueLabelMapFilter : public ShapeUniqueLabelMapFilter<TImage>
43 {
44 public:
45  ITK_DISALLOW_COPY_AND_MOVE(StatisticsUniqueLabelMapFilter);
46 
52 
54  using ImageType = TImage;
55  using ImagePointer = typename ImageType::Pointer;
57  using PixelType = typename ImageType::PixelType;
58  using IndexType = typename ImageType::IndexType;
59  using LabelObjectType = typename ImageType::LabelObjectType;
60 
61  using AttributeType = typename LabelObjectType::AttributeType;
62 
64  static constexpr unsigned int ImageDimension = TImage::ImageDimension;
65 
67  itkNewMacro(Self);
68 
70  itkOverrideGetNameOfClassMacro(StatisticsUniqueLabelMapFilter);
71 
72 #ifdef ITK_USE_CONCEPT_CHECKING
73  // Begin concept checking
74 /* itkConceptMacro(InputEqualityComparableCheck,
75  (Concept::EqualityComparable<InputImagePixelType>));
76  itkConceptMacro(IntConvertibleToInputCheck,
77  (Concept::Convertible<int, InputImagePixelType>));
78  itkConceptMacro(InputOStreamWritableCheck,
79  (Concept::OStreamWritable<InputImagePixelType>));*/
80 // End concept checking
81 #endif
82 
83 protected:
85  ~StatisticsUniqueLabelMapFilter() override = default;
86 
87  void
88  GenerateData() override;
89 };
90 } // end namespace itk
91 
92 #ifndef ITK_MANUAL_INSTANTIATION
93 # include "itkStatisticsUniqueLabelMapFilter.hxx"
94 #endif
95 
96 #endif
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkAddImageFilter.h:94
itk::ShapeUniqueLabelMapFilter::LabelObjectType
typename ImageType::LabelObjectType LabelObjectType
Definition: itkShapeUniqueLabelMapFilter.h:61
itk::SmartPointer< Self >
itk::ShapeUniqueLabelMapFilter::AttributeType
typename LabelObjectType::AttributeType AttributeType
Definition: itkShapeUniqueLabelMapFilter.h:64
itk::ShapeUniqueLabelMapFilter
Remove some pixels in the label object according to the value of their shape attribute to ensure that...
Definition: itkShapeUniqueLabelMapFilter.h:44
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::ShapeUniqueLabelMapFilter::IndexType
typename ImageType::IndexType IndexType
Definition: itkShapeUniqueLabelMapFilter.h:60
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::StatisticsUniqueLabelMapFilter
Remove some pixels in the label object according to the value of their statistics attribute to ensure...
Definition: itkStatisticsUniqueLabelMapFilter.h:42
itk::ShapeUniqueLabelMapFilter::PixelType
typename ImageType::PixelType PixelType
Definition: itkShapeUniqueLabelMapFilter.h:59
itk::ShapeUniqueLabelMapFilter::ImageConstPointer
typename ImageType::ConstPointer ImageConstPointer
Definition: itkShapeUniqueLabelMapFilter.h:58
itk::ShapeUniqueLabelMapFilter::ImageType
TImage ImageType
Definition: itkShapeUniqueLabelMapFilter.h:56
itkShapeUniqueLabelMapFilter.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itkStatisticsLabelObject.h
itk::ShapeUniqueLabelMapFilter::ImagePointer
typename ImageType::Pointer ImagePointer
Definition: itkShapeUniqueLabelMapFilter.h:57