ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkStatisticsOpeningLabelMapFilter.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 itkStatisticsOpeningLabelMapFilter_h
19 #define itkStatisticsOpeningLabelMapFilter_h
20 
24 
25 namespace itk
26 {
44 template< typename TImage >
45 class ITK_TEMPLATE_EXPORT StatisticsOpeningLabelMapFilter:
46  public ShapeOpeningLabelMapFilter< TImage >
47 {
48 public:
54 
56  typedef TImage ImageType;
57  typedef typename ImageType::Pointer ImagePointer;
58  typedef typename ImageType::ConstPointer ImageConstPointer;
59  typedef typename ImageType::PixelType PixelType;
60  typedef typename ImageType::IndexType IndexType;
61  typedef typename ImageType::LabelObjectType LabelObjectType;
62 
63  typedef typename LabelObjectType::AttributeType AttributeType;
64 
66  itkStaticConstMacro(ImageDimension, unsigned int,
67  TImage::ImageDimension);
68 
70  itkNewMacro(Self);
71 
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:
90 
91  void GenerateData() ITK_OVERRIDE;
92 
93 private:
94  ITK_DISALLOW_COPY_AND_ASSIGN(StatisticsOpeningLabelMapFilter);
95 }; // end of class
96 } // end namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 #include "itkStatisticsOpeningLabelMapFilter.hxx"
100 #endif
101 
102 #endif
Light weight base class for most itk classes.
Remove objects according to the value of their shape attribute.
ShapeOpeningLabelMapFilter< TImage > Superclass
remove the objects according to the value of their statistics attribute