ITK
4.2.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Filtering
LabelMap
include
itkStatisticsKeepNObjectsLabelMapFilter.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 __itkStatisticsKeepNObjectsLabelMapFilter_h
19
#define __itkStatisticsKeepNObjectsLabelMapFilter_h
20
21
#include "
itkShapeKeepNObjectsLabelMapFilter.h
"
22
#include "
itkStatisticsLabelObject.h
"
23
#include "
itkStatisticsLabelObjectAccessors.h
"
24
25
namespace
itk
26
{
45
template
<
class
TImage >
46
class
ITK_EXPORT
StatisticsKeepNObjectsLabelMapFilter
:
47
public
ShapeKeepNObjectsLabelMapFilter
< TImage >
48
{
49
public
:
51
typedef
StatisticsKeepNObjectsLabelMapFilter
Self
;
52
typedef
ShapeKeepNObjectsLabelMapFilter< TImage >
Superclass
;
53
typedef
SmartPointer< Self >
Pointer
;
54
typedef
SmartPointer< const Self >
ConstPointer
;
55
57
typedef
TImage
ImageType
;
58
typedef
typename
ImageType::Pointer
ImagePointer
;
59
typedef
typename
ImageType::ConstPointer
ImageConstPointer
;
60
typedef
typename
ImageType::PixelType
PixelType
;
61
typedef
typename
ImageType::IndexType
IndexType
;
62
typedef
typename
ImageType::LabelObjectType
LabelObjectType
;
63
64
typedef
typename
LabelObjectType::AttributeType
AttributeType
;
65
67
itkStaticConstMacro(ImageDimension,
unsigned
int
,
68
TImage::ImageDimension);
69
71
itkNewMacro(
Self
);
72
74
itkTypeMacro(
StatisticsKeepNObjectsLabelMapFilter
,
75
ShapeKeepNObjectsLabelMapFilter
);
76
77
#ifdef ITK_USE_CONCEPT_CHECKING
78
79
/* itkConceptMacro(InputEqualityComparableCheck,
80
(Concept::EqualityComparable<InputImagePixelType>));
81
itkConceptMacro(IntConvertibleToInputCheck,
82
(Concept::Convertible<int, InputImagePixelType>));
83
itkConceptMacro(InputOStreamWritableCheck,
84
(Concept::OStreamWritable<InputImagePixelType>));*/
85
87
#endif
88
protected
:
89
StatisticsKeepNObjectsLabelMapFilter
();
90
~StatisticsKeepNObjectsLabelMapFilter
() {}
91
92
void
GenerateData();
93
94
private
:
95
StatisticsKeepNObjectsLabelMapFilter
(
const
Self &);
//purposely not
96
// implemented
97
void
operator=(
const
Self &);
//purposely not
98
// implemented
99
};
// end of class
100
}
// end namespace itk
101
102
#ifndef ITK_MANUAL_INSTANTIATION
103
#include "itkStatisticsKeepNObjectsLabelMapFilter.hxx"
104
#endif
105
106
#endif
107
Generated on Tue Jul 10 2012 23:45:13 for ITK by
1.8.1