ho_font.h man page

src/ho_font.h — libhocr C language header.

Synopsis

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

Defines

#define HO_FONT_H 1

Functions

ho_bitmap * ho_font_main_sign (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_second_object (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_holes (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_hbars (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_vbars (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_diagonal (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_diagonal_left (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_thin_naive (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_thin (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_cross (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_ends (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_edges_top (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_edges_top_big (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_edges_bottom (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_edges_bottom_big (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_edges_left (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_edges_left_big (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_edges_right (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_edges_right_big (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_notch_top (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_notch_bottom (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_notch_left (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_notch_right (const ho_bitmap *m_text, const ho_bitmap *m_mask)

ho_bitmap * ho_font_filter (const ho_bitmap *m_text, const ho_bitmap *m_mask, int filter_index)

ho_bitmap * ho_font_holes_filter (const ho_bitmap *m_text, const ho_bitmap *m_mask, int filter_index)

int ho_font_pnm_save (const ho_bitmap *m_text, const ho_bitmap *m_nikud, const ho_bitmap *m_mask, const char *filename)

int ho_font_pnm_load (ho_bitmap **m_text, ho_bitmap **m_nikud, ho_bitmap **m_mask, const char *filename)

Detailed Description

libhocr C language header.

libhocr - LIBrary for Hebrew Optical Character Recognition

Define Documentation

#define HO_FONT_H 1

Function Documentation

ho_bitmap* ho_font_main_sign (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of the main signs in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_second_object (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of the second object sign in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_holes (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of holes in the bitmap

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_hbars (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of horizontal bars found in the bitmap

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_vbars (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of vertical bars found in the bitmap

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_diagonal (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of -45 deg. diagonals found in the bitmap

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_diagonal_left (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of +45 deg. diagonals found in the bitmap

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_thin_naive (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a thinned bitmap without fixing artefacts

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_thin (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a thinned bitmap and fix artefacts

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_cross (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of cross points in input image

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_ends (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of end points in input image

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_edges_top (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of top side picks in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_edges_top_big (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of big top side picks in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_edges_bottom (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of bottom side picks in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_edges_bottom_big (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of big bottom side picks in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_edges_left (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of left side picks in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_edges_left_big (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of big left side picks in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_edges_right (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of right side picks in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_edges_right_big (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of big right side picks in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_notch_top (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of top side notches in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_notch_bottom (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of bottom side notches in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_notch_left (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of left side notches in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_notch_right (const ho_bitmap * m_text, const ho_bitmap * m_mask)

return a bitmap of right side notches in the font

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_filter (const ho_bitmap * m_text, const ho_bitmap * m_mask, int filter_index)

return a bitmap of a filter

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map
filter_index the index of the filter to use

Returns:

a newly allocated bitmap

ho_bitmap* ho_font_holes_filter (const ho_bitmap * m_text, const ho_bitmap * m_mask, int filter_index)

return a bitmap of a filter used on font holes

Parameters:

m_text pointer to the text bitmap
m_mask pointer to the line map
filter_index the index of the filter to use

Returns:

a newly allocated bitmap

int ho_font_pnm_save (const ho_bitmap * m_text, const ho_bitmap * m_nikud, const ho_bitmap * m_mask, const char * filename)

writes font to file

Parameters:

m_text ho_bitmap of main font
m_nikud ho_bitmap of nikud
m_mask ho_bitmap of line
filename save as file name

Returns:

FALSE

int ho_font_pnm_load (ho_bitmap ** m_text, ho_bitmap ** m_nikud, ho_bitmap ** m_mask, const char * filename)

read ho_pixbuf from file

Parameters:

m_text pointer to return ho_bitmap of main font
m_nikud pointer to return ho_bitmap of nikud
m_mask pointer to return ho_bitmap of line
filename file name

Returns:

newly allocated ho_pixbuf

Author

Generated automatically by Doxygen for libhocr from the source code.

Info

31 Jul 2008 Version 0.10.17 libhocr