Code for character clipping. More...
#include "pgedit.h"#include "notdll.h"Go to the source code of this file.
Classes | |
| class | PIXROW |
Functions | |
| void | char_clip_word (WERD *word, IMAGE &bin_image, PIXROW_LIST *&pixrow_list, IMAGELINE *&imlines, TBOX &pix_box) |
| IMAGELINE * | generate_imlines (IMAGE &bin_image, TBOX &pix_box) |
| ScrollView * | display_clip_image (WERD *word, IMAGE &bin_image, PIXROW_LIST *pixrow_list, TBOX &pix_box) |
| void | display_images (IMAGE &clip_image, IMAGE &scaled_image) |
| void | plot_pixrows (PIXROW_LIST *pixrow_list, ScrollView *win) |
Variables | |
| int | pix_word_margin = 3 |
| bool | show_char_clipping = TRUE |
| int | net_image_width = 40 |
| int | net_image_height = 36 |
| int | net_image_x_height = 22 |
Code for character clipping.
| void char_clip_word | ( | WERD * | word, | |
| IMAGE & | bin_image, | |||
| PIXROW_LIST *& | pixrow_list, | |||
| IMAGELINE *& | imlines, | |||
| TBOX & | pix_box | |||
| ) |
| word | word to be processed | |
| bin_image | whole image | |
| pixrow_list | pixrows built | |
| imlines | lines cut from image | |
| pix_box | box defining imlines |
| ScrollView* display_clip_image | ( | WERD * | word, | |
| IMAGE & | bin_image, | |||
| PIXROW_LIST * | pixrow_list, | |||
| TBOX & | pix_box | |||
| ) |
| word | word to be processed | |
| bin_image | whole image | |
| pixrow_list | pixrows built | |
| pix_box | box of subimage |
get some imagelines
| bin_image | from here |
| void plot_pixrows | ( | PIXROW_LIST * | pixrow_list, | |
| ScrollView * | win | |||
| ) |
plot for all blobs
| int net_image_height = 36 |
"NN input image height"
| int net_image_width = 40 |
"NN input image width"
| int net_image_x_height = 22 |
"NN input image x_height"
| int pix_word_margin = 3 |
"How far outside word BB to grow"
"Show clip image window?"
1.6.3