Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
14 #ifndef mitkAbstractClassifier_h
15 #define mitkAbstractClassifier_h
23 #include <itkeigen/Eigen/Dense>
43 virtual void Train(
const Eigen::MatrixXd &X,
const Eigen::MatrixXi &Y) = 0;
50 virtual Eigen::MatrixXi Predict(
const Eigen::MatrixXd &X) = 0;
74 virtual bool SupportsPointWiseWeight() = 0;
82 return m_PointWiseWeight;
91 this->m_PointWiseWeight = W;
100 this->m_IsUsingPointWiseWeight = value;
109 return this->m_IsUsingPointWiseWeight;
125 virtual bool SupportsPointWiseProbability() = 0;
133 return m_OutProbability;
142 m_IsUsingPointWiseProbability = value;
151 return m_IsUsingPointWiseProbability;
159 void MethodForBuild();
164 void SetNthItems(
const char *val,
unsigned int idx);
165 std::string GetNthItems(
unsigned int idx)
const;
167 void SetItemList(std::vector<std::string>);
168 std::vector<std::string> GetItemList()
const;
182 if(IsInitialized() ==
false)
185 if(timeGeometry ==
nullptr)
190 #endif // Skip Doxygen
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
void SetRequestedRegion(const itk::DataObject *) override
Set the requested region from this data object to match the requested region of the data object passe...
virtual void SetPointWiseWeight(const Eigen::MatrixXd &W)
SetPointWiseWeight.
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...
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
Eigen::MatrixXd m_PointWiseWeight
virtual Eigen::MatrixXd & GetPointWiseProbabilities()
GetPointWiseWeightCopy.
Eigen::MatrixXi & GetLabels()
GetPointWiseWeightCopy.
#define MITKCLCORE_EXPORT
Eigen::MatrixXd m_OutProbability
virtual void UsePointWiseWeight(bool value)
UsePointWiseWeight.
Find image slices visible on a given plane.
Eigen::MatrixXi m_OutLabel
virtual bool IsUsingPointWiseWeight()
IsUsingPointWiseWeight.
bool m_IsUsingPointWiseProbability
Base of all data objects.
virtual void UsePointWiseProbability(bool value)
UsePointWiseProbabilities.
#define mitkClassMacro(className, SuperClassName)
bool m_IsUsingPointWiseWeight
virtual Eigen::MatrixXd & GetPointWiseWeight()
GetPointWiseWeightCopy.
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
virtual bool IsUsingPointWiseProbability()
IsUsingPointWiseProbabilities.