digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
Loading...
Searching...
No Matches
Digikam::RedEye::RegressionTree Struct Reference

Public Member Functions

unsigned long num_leaves () const
 
const std::vector< float > & operator() (const std::vector< float > &feature_pixel_values, unsigned long &i) const
 requires
 

Public Attributes

std::vector< std::vector< float > > leaf_values
 
std::vector< SplitFeaturesplits
 

Member Function Documentation

◆ operator()()

const std::vector< float > & Digikam::RedEye::RegressionTree::operator() ( const std::vector< float > &  feature_pixel_values,
unsigned long &  i 
) const
  • All the index values in splits are less than
    Parameters
    feature_pixel_valuessize.
  • leaf_values.size() is a power of 2. (i.e. we require a tree with all the levels fully filled out.
  • leaf_values.size() == splits.size()+1 (i.e. there needs to be the right number of leaves given the number of splits in the tree) ensures runs through the tree and returns the vector at the leaf we end up in.
    Parameters
    iegal the selected leaf node index.