Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Common
KNN
itkBinaryTreeBase.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 __itkBinaryTreeBase_h
16
#define __itkBinaryTreeBase_h
17
18
#include "itkDataObject.h"
19
20
namespace
itk
21
{
22
32
template
<
class
TListSample >
33
class
BinaryTreeBase
:
public
DataObject
34
{
35
public
:
36
38
typedef
BinaryTreeBase
Self
;
39
typedef
DataObject
Superclass
;
40
typedef
SmartPointer< Self >
Pointer
;
41
typedef
SmartPointer< const Self >
ConstPointer
;
42
44
itkTypeMacro(
BinaryTreeBase
, DataObject );
45
47
typedef
TListSample
SampleType
;
48
50
typedef
typename
SampleType::MeasurementVectorType
MeasurementVectorType
;
51
typedef
typename
SampleType::MeasurementVectorSizeType
MeasurementVectorSizeType
;
52
typedef
typename
SampleType::TotalAbsoluteFrequencyType
TotalAbsoluteFrequencyType
;
53
55
itkSetObjectMacro( Sample,
SampleType
);
56
itkGetConstObjectMacro( Sample,
SampleType
);
57
59
TotalAbsoluteFrequencyType
GetNumberOfDataPoints
(
void
)
const
;
60
62
TotalAbsoluteFrequencyType
GetActualNumberOfDataPoints
(
void
)
const
;
63
65
MeasurementVectorSizeType
GetDataDimension
(
void
)
const
;
66
68
virtual
void
GenerateTree
(
void
) = 0;
69
70
protected
:
71
73
BinaryTreeBase
();
74
76
virtual
~BinaryTreeBase
() {};
77
79
virtual
void
PrintSelf
( std::ostream& os, Indent indent )
const
;
80
81
private
:
82
83
BinaryTreeBase
(
const
Self
& );
// purposely not implemented
84
void
operator=
(
const
Self
& );
// purposely not implemented
85
87
typename
SampleType::Pointer
m_Sample
;
88
89
};
// end class BinaryTreeBase
90
91
92
}
// end namespace itk
93
94
95
#ifndef ITK_MANUAL_INSTANTIATION
96
#include "itkBinaryTreeBase.txx"
97
#endif
98
99
100
#endif // end #ifndef __itkBinaryTreeBase_h
Generated on 21-03-2014 for elastix by
1.8.1.2