OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | List of all members
otb::CvRTreesWrapper Class Reference

#include <otbCvRTreesWrapper.h>

+ Inheritance diagram for otb::CvRTreesWrapper:
+ Collaboration diagram for otb::CvRTreesWrapper:

Public Types

typedef std::vector< unsigned int > VotesVectorType
 

Public Member Functions

 CvRTreesWrapper ()
 
void get_votes (const cv::Mat &sample, const cv::Mat &missing, VotesVectorType &vote_count) const
 
float predict_confidence (const cv::Mat &sample, const cv::Mat &missing=cv::Mat()) const
 
float predict_margin (const cv::Mat &sample, const cv::Mat &missing=cv::Mat()) const
 
 ~CvRTreesWrapper () override
 

Detailed Description

Wrapper for OpenCV Random Trees.

Definition at line 35 of file otbCvRTreesWrapper.h.

Member Typedef Documentation

typedef std::vector<unsigned int> otb::CvRTreesWrapper::VotesVectorType

Definition at line 43 of file otbCvRTreesWrapper.h.

Constructor & Destructor Documentation

otb::CvRTreesWrapper::CvRTreesWrapper ( )
otb::CvRTreesWrapper::~CvRTreesWrapper ( )
override

Member Function Documentation

void otb::CvRTreesWrapper::get_votes ( const cv::Mat &  sample,
const cv::Mat &  missing,
VotesVectorType vote_count 
) const

Compute the number of votes for each class.

float otb::CvRTreesWrapper::predict_confidence ( const cv::Mat &  sample,
const cv::Mat &  missing = cv::Mat() 
) const

Predict the confidence of the classifcation by computing the proportion of trees which voted for the majority class.

float otb::CvRTreesWrapper::predict_margin ( const cv::Mat &  sample,
const cv::Mat &  missing = cv::Mat() 
) const

Predict the confidence margin of the classifcation by computing the difference in votes between the first and second most voted classes. This measure is preferred to the proportion of votes of the majority class, since it provides information about the conflict between the most likely classes.


The documentation for this class was generated from the following file: