#include <JMorphology.h>
Static Public Member Functions | |
static void | compress_to_bit (unsigned char *byte_array, unsigned char *destination, int bits_needed, int bytes_needed) |
static int | ConvertData32Bit (language_profile *first_lang, int iPixelRow, int iPixelCol, unsigned int **uippNewData) |
static int | get_mean_and_stddev (int local_directions[4], float *scores[4], int *prob, int language_count, int u_symbol_count, float m_array[4], float s_array[4], float *high_stddev, float *second_stddev, int *second) |
static int | identify_and_orient (int hamming_number, int min_component_size, int max_height, int max_width, int min_height, int min_width, int min_symbol_count, float *blob_percent, int symbolcount, int rescale_height, int rescale_width, int upper_offset, int lower_offset, int left_offset, int right_offset, float *reliability_threshold, DLImage &strDocImage, int language_count, language_profile *first_lang, char *script, int *used_symbol_count, int *file_symbol_count, int *filtered_symbol_count, float *randoms, int max_random_index, float *separation_threshold, char *best_fit_script, char *second_best_script, float *stddev, float *separation, int collect_data_flag, float *symbol_distribution, unsigned int *hamming_lookup, int *prob, float *mlp_thresh, char *orientation, int *directions, int orient_det_threshold) |
static void | ConvertUSCInt (unsigned int *ui, unsigned char *image) |
static void | freeLanguageProfileStruct (language_profile *langProfile, int langCount) |
Class containing routines call by JScript in performing script identification It should eventually be combined with another class
Definition at line 115 of file JMorphology.h.
static void JMorphology::compress_to_bit | ( | unsigned char * | byte_array, | |
unsigned char * | destination, | |||
int | bits_needed, | |||
int | bytes_needed | |||
) | [static] |
Converts a 1 byte/pixel to 1 bit/pixel representation
static int JMorphology::ConvertData32Bit | ( | language_profile * | first_lang, | |
int | iPixelRow, | |||
int | iPixelCol, | |||
unsigned int ** | uippNewData | |||
) | [static] |
static int JMorphology::get_mean_and_stddev | ( | int | local_directions[4], | |
float * | scores[4], | |||
int * | prob, | |||
int | language_count, | |||
int | u_symbol_count, | |||
float | m_array[4], | |||
float | s_array[4], | |||
float * | high_stddev, | |||
float * | second_stddev, | |||
int * | second | |||
) | [static] |
static int JMorphology::identify_and_orient | ( | int | hamming_number, | |
int | min_component_size, | |||
int | max_height, | |||
int | max_width, | |||
int | min_height, | |||
int | min_width, | |||
int | min_symbol_count, | |||
float * | blob_percent, | |||
int | symbolcount, | |||
int | rescale_height, | |||
int | rescale_width, | |||
int | upper_offset, | |||
int | lower_offset, | |||
int | left_offset, | |||
int | right_offset, | |||
float * | reliability_threshold, | |||
DLImage & | strDocImage, | |||
int | language_count, | |||
language_profile * | first_lang, | |||
char * | script, | |||
int * | used_symbol_count, | |||
int * | file_symbol_count, | |||
int * | filtered_symbol_count, | |||
float * | randoms, | |||
int | max_random_index, | |||
float * | separation_threshold, | |||
char * | best_fit_script, | |||
char * | second_best_script, | |||
float * | stddev, | |||
float * | separation, | |||
int | collect_data_flag, | |||
float * | symbol_distribution, | |||
unsigned int * | hamming_lookup, | |||
int * | prob, | |||
float * | mlp_thresh, | |||
char * | orientation, | |||
int * | directions, | |||
int | orient_det_threshold | |||
) | [static] |
Main routine called to calculate script and orientation for an image
static void JMorphology::ConvertUSCInt | ( | unsigned int * | ui, | |
unsigned char * | image | |||
) | [static] |
static void JMorphology::freeLanguageProfileStruct | ( | language_profile * | langProfile, | |
int | langCount | |||
) | [static] |