void save_texton_dictionary(void)
Save the texton dictionary.
void load_texton_dictionary(void)
Load a texton dictionary.
float * texton_distribution
uint32_t n_learning_samples
void DictionaryTrainingYUV(uint8_t *frame, uint16_t width, uint16_t height)
Function that performs one pass for dictionary training.
float get_entropy(float *p_dist, int D)
Function that calculates a base-2 Shannon entropy for a probability distribution.
uint8_t dictionary_initialized
uint8_t reinitialize_dictionary
void DistributionExtraction(uint8_t *frame, uint16_t width, uint16_t height)
Function that extracts a texton histogram from an image.
uint8_t dictionary_number