ITK  4.4.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< class TImage >
46  public ShapeRelabelLabelMapFilter< 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 
78 /* itkConceptMacro(InputEqualityComparableCheck,
79  (Concept::EqualityComparable<InputImagePixelType>));
80  itkConceptMacro(IntConvertibleToInputCheck,
81  (Concept::Convertible<int, InputImagePixelType>));
82  itkConceptMacro(InputOStreamWritableCheck,
83  (Concept::OStreamWritable<InputImagePixelType>));*/
84 
86 #endif
87 
88 protected:
91 
92  void GenerateData();
93 
94 private:
95  StatisticsRelabelLabelMapFilter(const Self &); //purposely not implemented
96  void operator=(const Self &); //purposely not implemented
97 }; // end of class
98 } // end namespace itk
99 
100 #ifndef ITK_MANUAL_INSTANTIATION
101 #include "itkStatisticsRelabelLabelMapFilter.hxx"
102 #endif
103 
104 #endif
105