JMorphology Class Reference

Class containing routines call by JScript in performing script identification. More...

#include <JMorphology.h>

List of all members.

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)


Detailed Description

Class containing routines call by JScript in performing script identification.

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.


Member Function Documentation

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]


The documentation for this class was generated from the following file:
Generated on Fri Feb 23 15:32:33 2007 for Jargon by  doxygen 1.5.1