ITK
4.3.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
89
protected
:
90
StatisticsKeepNObjectsLabelMapFilter
();
91
~StatisticsKeepNObjectsLabelMapFilter
() {}
92
93
void
GenerateData();
94
95
private
:
96
StatisticsKeepNObjectsLabelMapFilter
(
const
Self &);
//purposely not
97
// implemented
98
void
operator=(
const
Self &);
//purposely not
99
// implemented
100
};
// end of class
101
}
// end namespace itk
102
103
#ifndef ITK_MANUAL_INSTANTIATION
104
#include "itkStatisticsKeepNObjectsLabelMapFilter.hxx"
105
#endif
106
107
#endif
108
Generated on Sun Dec 9 2012 01:27:53 for ITK by
1.8.2