/home/rays/src/opensrc/tesseract-ocr/ccmain/pgedit.h File Reference

#include "ocrblock.h"
#include "ocrrow.h"
#include "werd.h"
#include "rect.h"
#include "params.h"
#include "notdll.h"
#include "tesseractclass.h"

Go to the source code of this file.

Classes

class  PGEventHandler

Functions

ScrollViewbln_word_window_handle ()
void build_image_window (int width, int height)
void display_bln_lines (ScrollView window, ScrollView::Color colour, float scale_factor, float y_offset, float minx, float maxx)
void pgeditor_msg (const char *msg)
void pgeditor_show_point (SVEvent *event)
void show_point (PAGE_RES *page_res, float x, float y)

Variables

BLOCK_LIST * current_block_list
char * editor_image_win_name = "EditorImage"
int editor_image_xpos = 590
int editor_image_ypos = 10
int editor_image_height = 680
int editor_image_width = 655
int editor_image_word_bb_color = BLUE
int editor_image_blob_bb_color = YELLOW
int editor_image_text_color = WHITE
char * editor_dbwin_name = "EditorDBWin"
int editor_dbwin_xpos = 50
int editor_dbwin_ypos = 500
int editor_dbwin_height = 24
int editor_dbwin_width = 80
char * editor_word_name = "BlnWords"
int editor_word_xpos = 60
int editor_word_ypos = 510
int editor_word_height = 240
int editor_word_width = 655
double editor_smd_scale_factor = 1.0

Function Documentation

ScrollView* bln_word_window_handle (  ) 

bln_word_window_handle()

Returns:
a WINDOW for the word window, creating it if necessary
void build_image_window ( int  width,
int  height 
)

build_image_window()

Destroy the existing image window if there is one. Work out how big the new window needs to be. Create it and re-display.

void display_bln_lines ( ScrollView  window,
ScrollView::Color  colour,
float  scale_factor,
float  y_offset,
float  minx,
float  maxx 
)
void pgeditor_msg ( const char *  msg  ) 

pgeditor_msg()

Display a message - in the command window if there is one, or to stdout

void pgeditor_show_point ( SVEvent event  ) 

pgeditor_show_point()

Display the coordinates of a point in the command window

void show_point ( PAGE_RES page_res,
float  x,
float  y 
)

show_point()

Show coords of point, blob bounding box, word bounding box and offset from row baseline


Variable Documentation

BLOCK_LIST* current_block_list

"Editor debug window height"

char* editor_dbwin_name = "EditorDBWin"

"Editor debug window name"

"Editor debug window width"

"Editor debug window X Pos"

int editor_dbwin_ypos = 500

"Editor debug window Y Pos"

"Blob bounding box colour"

"Editor image height"

"Correct text colour"

int editor_image_width = 655

"Editor image width"

char* editor_image_win_name = "EditorImage"

"Editor image window name"

"Word bounding box colour"

int editor_image_xpos = 590

"Editor image X Pos"

"Editor image Y Pos"

"Scaling for smd image"

int editor_word_height = 240

"Word window height"

char* editor_word_name = "BlnWords"

"BL normalised word window"

"BL normalized word window"

int editor_word_width = 655

"Word window width"

int editor_word_xpos = 60

"Word window X Pos"

int editor_word_ypos = 510

"Word window Y Pos"

Generated on Thu Feb 2 08:19:21 2012 for Tesseract by  doxygen 1.6.3