ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkDecisionRule.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 itkDecisionRule_h
19 #define itkDecisionRule_h
20 
21 #include <vector>
22 #include "vnl/vnl_matrix.h"
23 #include "itkObject.h"
24 #include "itkObjectFactory.h"
25 #include "itkArray.h"
27 #include "ITKStatisticsExport.h"
28 
29 namespace itk
30 {
31 namespace Statistics
32 {
48 class ITKStatistics_EXPORT DecisionRule : public Object
49 {
50 public:
52  typedef DecisionRule Self;
53  typedef Object Superclass;
56 
58  itkTypeMacro(DecisionRule, Object);
59 
61  typedef double MembershipValueType;
62  typedef std::vector< MembershipValueType > MembershipVectorType;
63 
65  typedef MembershipVectorType::size_type ClassIdentifierType;
66 
72  virtual ClassIdentifierType Evaluate(const MembershipVectorType & discriminantScores) const = 0;
73 
74 protected:
75  DecisionRule();
76  virtual ~DecisionRule();
77 
78 private:
79  DecisionRule(const Self &); //purposely not implemented
80  void operator=(const Self &); //purposely not implemented
81 }; // end of class
82 } // end of namespace Statistics
83 } // end of namespace itk
84 
85 #endif
Light weight base class for most itk classes.
SmartPointer< Self > Pointer
Base class for decision rules that return a class label based on a set of discriminant scores...
MembershipVectorType::size_type ClassIdentifierType
SmartPointer< const Self > ConstPointer
std::vector< MembershipValueType > MembershipVectorType
Base class for most ITK classes.
Definition: itkObject.h:57