ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkDecisionRule_h 00019 #define __itkDecisionRule_h 00020 00021 #include <vector> 00022 #include "vnl/vnl_matrix.h" 00023 #include "itkObject.h" 00024 #include "itkObjectFactory.h" 00025 #include "itkArray.h" 00026 #include "itkVariableLengthVector.h" 00027 00028 namespace itk 00029 { 00030 namespace Statistics 00031 { 00047 class ITK_EXPORT DecisionRule : public Object 00048 { 00049 public: 00051 typedef DecisionRule Self; 00052 typedef Object Superclass; 00053 typedef SmartPointer< Self > Pointer; 00054 typedef SmartPointer< const Self > ConstPointer; 00055 00057 itkTypeMacro(DecisionRule, Object); 00058 00060 typedef double MembershipValueType; 00061 typedef std::vector< MembershipValueType > MembershipVectorType; 00062 00064 typedef MembershipVectorType::size_type ClassIdentifierType; 00065 00071 virtual ClassIdentifierType Evaluate(const MembershipVectorType & discriminantScores) const = 0; 00072 00073 protected: 00074 DecisionRule(); 00075 virtual ~DecisionRule(); 00076 00077 private: 00078 DecisionRule(const Self &); //purposely not implemented 00079 void operator=(const Self &); //purposely not implemented 00080 }; // end of class 00081 } // end of namespace Statistics 00082 } // end of namespace itk 00083 00084 #endif 00085