#include <JargonTBRoutines.h>
Static Public Member Functions | |
static int | tb_CalcLineOrientation (DLImage &dimage, vector< DLComponent > *activecc, int iNumber, int iPctDiff) |
Calculates the line direction (horizontal vs. vertical(). | |
static void | put_on_list_dl (TB_nodes *N, int i, int j, float dx, float dy) |
static int | tb_CalcQuadrantMasses (unsigned char *uscImage, int iRows, int iCols, int **iQuadMasses) |
Calculates the number of on pixels in the four quadrants of a region. | |
static int | tb_PackUCArray (unsigned char *image, unsigned char **newimage, int iRow, int iCol) |
Compress an 1byte/pixel to a 1 bit/pixel array. | |
static int | tb_GetResizedComponent (DLComponent *ccomp, unsigned char **image, int iResizeRow, int iResizeCol) |
Creates an array (1 byte/pixel) represented a resized version of a connected component. | |
static int | tb_RotateComponent (unsigned char *origimage, unsigned char **rimage, int iRows, int iCols, int iDegrees) |
static int | tbCompressUCArray (unsigned char *image, unsigned char **newimage, int iRow, int iCol) |
Compresses an unsigned char (1 byte/pixel) to a 1 bit/pixel representation. | |
Static Public Attributes | |
static int | iLUT [8] |
Class to contain a variety of legacy code from earlier image processing library.
Definition at line 62 of file JargonTBRoutines.h.
static int JargonTBRoutines::tb_CalcLineOrientation | ( | DLImage & | dimage, | |
vector< DLComponent > * | activecc, | |||
int | iNumber, | |||
int | iPctDiff | |||
) | [static] |
Calculates the line direction (horizontal vs. vertical().
FILE: rget_lines.c DESCRIPTION: Uses dress-right-dress algorithm to form the components into lines of text. in the horizontal and in the vertical direction then gets the mean of the distance between components in hor and vet direction USAGE: rget_lines(Document &D) RETURN: void NOTES:This version uses a triangle region to the right of CC.
| \
| \RETURN VALUES : 0 means the lines are horizontal, 1 lines run vertical -1 not enough links on page -2 percent diff not great enough to make determination -4 insufficient memory
iNumber - previously the subscript 0 component was not used, and (iNumber - 1) components were processed, having subscripts 1 .. (iNumber-1).
iPctDiff : % difference necessary to make the call, ie 5, 1, 20, etc
static void JargonTBRoutines::put_on_list_dl | ( | TB_nodes * | N, | |
int | i, | |||
int | j, | |||
float | dx, | |||
float | dy | |||
) | [static] |
static int JargonTBRoutines::tb_CalcQuadrantMasses | ( | unsigned char * | uscImage, | |
int | iRows, | |||
int | iCols, | |||
int ** | iQuadMasses | |||
) | [static] |
Calculates the number of on pixels in the four quadrants of a region.
Calculates the number of on pixels in the four quadrants of a region. This routine operates on an usigned char array
static int JargonTBRoutines::tb_PackUCArray | ( | unsigned char * | image, | |
unsigned char ** | newimage, | |||
int | iRow, | |||
int | iCol | |||
) | [static] |
Compress an 1byte/pixel to a 1 bit/pixel array.
This routine takes a 1 byte/pixel unsigned char array and packs it into a new 1 bit/pixel representation
static int JargonTBRoutines::tb_GetResizedComponent | ( | DLComponent * | ccomp, | |
unsigned char ** | image, | |||
int | iResizeRow, | |||
int | iResizeCol | |||
) | [static] |
Creates an array (1 byte/pixel) represented a resized version of a connected component.
static int JargonTBRoutines::tb_RotateComponent | ( | unsigned char * | origimage, | |
unsigned char ** | rimage, | |||
int | iRows, | |||
int | iCols, | |||
int | iDegrees | |||
) | [static] |
Rotates a connected component. Both the input and the output are unsigned char representations of the component
static int JargonTBRoutines::tbCompressUCArray | ( | unsigned char * | image, | |
unsigned char ** | newimage, | |||
int | iRow, | |||
int | iCol | |||
) | [static] |
Compresses an unsigned char (1 byte/pixel) to a 1 bit/pixel representation.
int JargonTBRoutines::iLUT[8] [static] |
Definition at line 68 of file JargonTBRoutines.h.