ho_dimentions.h

Langue: en

Version: 151103 (fedora - 04/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

src/ho_dimentions.h - libhocr C language header.

SYNOPSIS


#include <ho_bitmap.h>
#include <ho_objmap.h>

Defines


#define HO_DIMENTIONS_H 1

Functions


int ho_dimentions_font_width_height_nikud (ho_bitmap *m, const int min_height, const int max_height, const int min_width, const int max_width)

int ho_dimentions_line_spacing (ho_bitmap *m)

int ho_dimentions_font_spacing (ho_bitmap *m, const ho_bitmap *m_line_map)

int ho_dimentions_line_fill (ho_bitmap *m, const ho_bitmap *m_line_map)

int ho_dimentions_get_columns (const ho_bitmap *m)

int ho_dimentions_get_columns_with_x_start (const ho_bitmap *m, int **column_start_list)

double ho_dimentions_get_lines_angle (const ho_bitmap *m)

Detailed Description

libhocr C language header.

libhocr - LIBrary for Hebrew Optical Character Recognition

Define Documentation

#define HO_DIMENTIONS_H 1

Function Documentation

int ho_dimentions_font_width_height_nikud (ho_bitmap * m, const int min_height, const int max_height, const int min_width, const int max_width)

guess font dimentions, sets: font_height, font_width and nikud [for a page or block]

Parameters:

m pointer to an ho_bitmap
min_height only objects with this minimal height are used
max_height only objects with this maximal height are used
min_width only objects with this minimal width are used
max_width only objects with this maximal width are used

Returns:

FALSE

int ho_dimentions_line_spacing (ho_bitmap * m)

guess line dimentions, sets line_spacing [for a block]

Parameters:

m pointer to an ho_bitmap

Returns:

FALSE

int ho_dimentions_font_spacing (ho_bitmap * m, const ho_bitmap * m_line_map)

guess line dimentions, sets font_spacing [for a line]

Parameters:

m pointer to an ho_bitmap of text
m_line_map pointer to an ho_bitmap of ine

Returns:

FALSE

int ho_dimentions_line_fill (ho_bitmap * m, const ho_bitmap * m_line_map)

get line fill parameters [for a line]

Parameters:

m pointer to an ho_bitmap of text
m_line_map pointer to an ho_bitmap of ine

Returns:

FALSE

int ho_dimentions_get_columns (const ho_bitmap * m)

guess number of columns in bitmap

Parameters:

m pointer to an ho_bitmap

Returns:

guessed number of columns

int ho_dimentions_get_columns_with_x_start (const ho_bitmap * m, int ** column_start_list)

guess number of columns in bitmap

Parameters:

m pointer to an ho_bitmap
column_start_list a newly allocated int list of start of columns x value

Returns:

guessed number of columns

double ho_dimentions_get_lines_angle (const ho_bitmap * m)

guess angle of page lines

Parameters:

m pointer to an ho_bitmap

Returns:

guessed angle in degrees

Author

Generated automatically by Doxygen for libhocr from the source code.