Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Common
KNN
itkANNbdTree.h
Go to the documentation of this file.
1
/*======================================================================
2
3
This file is part of the elastix software.
4
5
Copyright (c) University Medical Center Utrecht. All rights reserved.
6
See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7
details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notices for more information.
12
13
======================================================================*/
14
15
#ifndef __itkANNbdTree_h
16
#define __itkANNbdTree_h
17
18
#include "
itkANNkDTree.h
"
19
20
namespace
itk
21
{
22
32
template
<
class
TListSample >
33
class
ANNbdTree
:
public
ANNkDTree
< TListSample >
34
{
35
public
:
36
38
typedef
ANNbdTree
Self
;
39
typedef
ANNkDTree< TListSample >
Superclass
;
40
typedef
SmartPointer< Self >
Pointer
;
41
typedef
SmartPointer< const Self >
ConstPointer
;
42
44
itkNewMacro(
Self
);
45
47
itkTypeMacro(
ANNbdTree
,
ANNkDTree
);
48
50
typedef
typename
Superclass::SampleType
SampleType
;
51
typedef
typename
Superclass::MeasurementVectorType
MeasurementVectorType
;
52
typedef
typename
Superclass::MeasurementVectorSizeType
MeasurementVectorSizeType
;
53
typedef
typename
Superclass::TotalAbsoluteFrequencyType
TotalAbsoluteFrequencyType
;
54
typedef
typename
Superclass::ANNPointSetType
ANNPointSetType
;
55
typedef
typename
Superclass::ANNkDTreeType
ANNkDTreeType
;
56
typedef
typename
Superclass::SplittingRuleType
SplittingRuleType
;
57
typedef
typename
Superclass::BucketSizeType
BucketSizeType
;
58
59
typedef
ANNshrinkRule
ShrinkingRuleType
;
60
62
itkSetMacro( ShrinkingRule,
ShrinkingRuleType
);
63
itkGetConstMacro( ShrinkingRule,
ShrinkingRuleType
);
64
void
SetShrinkingRule
( std::string rule );
65
std::string
GetShrinkingRule
(
void
);
66
68
virtual
void
GenerateTree
(
void
);
69
70
protected
:
71
73
ANNbdTree
();
74
76
virtual
~ANNbdTree
() {};
77
79
virtual
void
PrintSelf
( std::ostream& os, Indent indent )
const
;
80
82
ShrinkingRuleType
m_ShrinkingRule
;
83
84
private
:
85
86
ANNbdTree
(
const
Self
& );
// purposely not implemented
87
void
operator=
(
const
Self
& );
// purposely not implemented
88
89
};
// end class ANNbdTree
90
91
92
}
// end namespace itk
93
94
95
#ifndef ITK_MANUAL_INSTANTIATION
96
#include "itkANNbdTree.txx"
97
#endif
98
99
100
#endif // end #ifndef __itkANNbdTree_h
101
Generated on 21-03-2014 for elastix by
1.8.1.2