Leptonica 1.54
Файл src/finditalic.c
#include <stdio.h>
#include <stdlib.h>
#include "allheaders.h"

Функции

l_int32 pixItalicWords (PIX *pixs, BOXA *boxaw, PIX *pixw, BOXA **pboxa, l_int32 debugflag)

Переменные

static const char * str_ital1 = "o x "
static const char * str_ital2 = "o x "
static const char * str_ital3 = "x "

Функции

l_int32 pixItalicWords ( PIX pixs,
BOXA boxaw,
PIX pixw,
BOXA **  pboxa,
l_int32  debugflag 
)

pixItalicWords()

Input: pixs (1 bpp) boxaw (<optional> word bounding boxes; can be NULL) pixw (<optional> word box mask; can be NULL) &boxa (<return> boxa of italian words) debugflag (1 for debug output; 0 otherwise) Return: 0 if OK, 1 on error

Notes: (1) You can input the bounding boxes for the words in one of two forms: as bounding boxes () or as a word mask with the word bounding boxes filled (). For example, to compute , you can use pixWordMaskByDilation(). (2) Alternatively, you can set both of these inputs to NULL, in which case the word mask is generated here. This is done by dilating and closing the input image to connect letters within a word, while leaving the words separated. The parameters are chosen under the assumption that the input is 10 to 12 pt text, scanned at about 300 ppi.


Переменные

const char* str_ital1 = "o x " [static]
const char* str_ital2 = "o x " [static]
const char* str_ital3 = "x " [static]