18 #ifndef mitkAbstractClassifier_h
19 #define mitkAbstractClassifier_h
27 #include <Eigen/Dense>
43 virtual void Train(
const Eigen::MatrixXd &X,
const Eigen::MatrixXi &Y) = 0;
54 virtual Eigen::MatrixXi Predict(
const Eigen::MatrixXd &X) = 0;
78 virtual bool SupportsPointWiseWeight() = 0;
86 return m_PointWiseWeight;
95 this->m_PointWiseWeight = W;
104 this->m_IsUsingPointWiseWeight = value;
113 return this->m_IsUsingPointWiseWeight;
129 virtual bool SupportsPointWiseProbability() = 0;
137 return m_OutProbability;
146 m_IsUsingPointWiseProbability = value;
155 return m_IsUsingPointWiseProbability;
163 void MethodForBuild();
168 void SetNthItems(
const char *val,
unsigned int idx);
169 std::string GetNthItems(
unsigned int idx)
const;
171 void SetItemList(std::vector<std::string>);
172 std::vector<std::string> GetItemList()
const;
186 if(IsInitialized() ==
false)
189 if(timeGeometry == NULL)
194 #endif // Skip Doxygen
199 #endif //mitkAbstractClassifier_h
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion()
Determine whether the RequestedRegion is outside of the BufferedRegion.
virtual bool IsUsingPointWiseWeight()
IsUsingPointWiseWeight.
Base of all data objects.
Eigen::MatrixXi m_OutLabel
DataCollection - Class to facilitate loading/accessing structured data.
Eigen::MatrixXi & GetLabels()
GetPointWiseWeightCopy.
#define MITKCLCORE_EXPORT
virtual void SetRequestedRegion(const itk::DataObject *)
Set the requested region from this data object to match the requested region of the data object passe...
virtual bool IsEmpty() const override
Check whether object contains data (at least at one point in time), e.g., a set of points may be empt...
virtual Eigen::MatrixXd & GetPointWiseWeight()
GetPointWiseWeightCopy.
virtual bool VerifyRequestedRegion()
Verify that the RequestedRegion is within the LargestPossibleRegion.
Eigen::MatrixXd m_PointWiseWeight
#define mitkClassMacro(className, SuperClassName)
virtual void SetRequestedRegionToLargestPossibleRegion()
Set the RequestedRegion to the LargestPossibleRegion.
virtual void UsePointWiseWeight(bool value)
UsePointWiseWeight.
bool m_IsUsingPointWiseProbability
virtual Eigen::MatrixXd & GetPointWiseProbabilities()
GetPointWiseWeightCopy.
Eigen::MatrixXd m_OutProbability
bool m_IsUsingPointWiseWeight
virtual void UsePointWiseProbability(bool value)
UsePointWiseProbabilities.
virtual void SetPointWiseWeight(const Eigen::MatrixXd &W)
SetPointWiseWeight.
virtual bool IsUsingPointWiseProbability()
IsUsingPointWiseProbabilities.