ITK
4.4.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Numerics
Statistics
include
itkMaximumRatioDecisionRule.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 __itkMaximumRatioDecisionRule_h
19
#define __itkMaximumRatioDecisionRule_h
20
21
#include <vector>
22
#include "vnl/vnl_matrix.h"
23
24
#include "
itkNumericTraits.h
"
25
#include "
itkDecisionRule.h
"
26
27
namespace
itk
28
{
29
namespace
Statistics
30
{
57
class
ITK_EXPORT
MaximumRatioDecisionRule
:
public
DecisionRule
58
{
59
public
:
61
typedef
MaximumRatioDecisionRule
Self
;
62
typedef
DecisionRule
Superclass
;
63
typedef
SmartPointer< Self >
Pointer
;
64
66
itkTypeMacro(
MaximumRatioDecisionRule
,
DecisionRule
);
67
69
itkNewMacro(
Self
);
70
72
typedef
Superclass::MembershipValueType
MembershipValueType
;
73
typedef
Superclass::MembershipVectorType
MembershipVectorType
;
74
76
typedef
Superclass::ClassIdentifierType
ClassIdentifierType
;
77
79
typedef
MembershipValueType
PriorProbabilityValueType
;
80
typedef
std::vector< PriorProbabilityValueType >
PriorProbabilityVectorType
;
81
typedef
PriorProbabilityVectorType::size_type
PriorProbabilityVectorSizeType
;
82
90
virtual
ClassIdentifierType
Evaluate(
const
MembershipVectorType
& discriminantScores)
const
;
91
96
void
SetPriorProbabilities(
const
PriorProbabilityVectorType
& p);
97
99
itkGetConstReferenceMacro(PriorProbabilities,
PriorProbabilityVectorType
);
100
101
protected
:
102
MaximumRatioDecisionRule
();
103
virtual
~MaximumRatioDecisionRule
() {}
104
void
PrintSelf(std::ostream & os,
Indent
indent)
const
;
105
106
private
:
107
MaximumRatioDecisionRule
(
const
Self &);
//purposely not implemented
108
void
operator=(
const
Self &);
//purposely not implemented
109
110
PriorProbabilityVectorType
m_PriorProbabilities
;
111
112
};
// end of class
113
}
// end of Statistics namespace
114
}
// end of ITK namespace
115
#endif
116
Generated on Mon May 13 2013 01:00:44 for ITK by
1.8.3.1