drawtord.h
来自「一OCR的相关资料。.希望对研究OCR的朋友有所帮助.」· C头文件 代码 · 共 108 行
H
108 行
/********************************************************************** * File: drawtord.h (Formerly drawto.h) * Description: Draw things to do with textord. * Author: Ray Smith * Created: Thu Jul 30 15:40:57 BST 1992 * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/#ifndef DRAWTORD_H#define DRAWTORD_H#include "varable.h"#include "grphics.h"#include "pitsync1.h"#include "blobbox.h"#include "notdll.h"#define NO_SMD "none"extern BOOL_VAR_H (textord_show_fixed_cuts, FALSE,"Draw fixed pitch cell boundaries");extern STRING_VAR_H (to_debugfile, DEBUG_WIN_NAME, "Name of debugfile");extern STRING_VAR_H (to_smdfile, NO_SMD, "Name of SMD file");extern WINDOW to_win;extern FILE *to_debug;void create_to_win( //make features win ICOORD page_tr //size of page );void close_to_win(); //make features winvoid create_todebug_win(); //make gradients winvoid plot_blob_list( //make gradients win WINDOW win, //window to draw in BLOBNBOX_LIST *list, //blob list COLOUR body_colour, //colour to draw COLOUR child_colour //colour of child );void plot_box_list( //make gradients win WINDOW win, //window to draw in BLOBNBOX_LIST *list, //blob list COLOUR body_colour //colour to draw );void plot_to_row( //draw a row TO_ROW *row, //row to draw COLOUR colour, //colour to draw in FCOORD rotation //rotation for line );void plot_parallel_row( //draw a row TO_ROW *row, //row to draw float gradient, //gradients of lines INT32 left, //edge of block COLOUR colour, //colour to draw in FCOORD rotation //rotation for line );void draw_occupation ( //draw projectionINT32 xleft, //edge of blockINT32 ybottom, //bottom of blockINT32 min_y, //coordinate limitsINT32 max_y, INT32 occupation[], //projection countsINT32 thresholds[] //for drop out);void draw_meanlines( //draw a block TO_BLOCK *block, //block to draw float gradient, //gradients of lines INT32 left, //edge of block COLOUR colour, //colour to draw in FCOORD rotation //rotation for line );void plot_word_decisions( //draw words WINDOW win, //window tro draw in INT16 pitch, //of block TO_ROW *row //row to draw );void plot_fp_cells( //draw words WINDOW win, //window tro draw in COLOUR colour, //colour of lines BLOBNBOX_IT *blob_it, //blobs INT16 pitch, //of block INT16 blob_count, //no of real blobs STATS *projection, //vertical INT16 projection_left, //edges //scale factor INT16 projection_right, float projection_scale);void plot_fp_cells2( //draw words WINDOW win, //window tro draw in COLOUR colour, //colour of lines TO_ROW *row, //for location FPSEGPT_LIST *seg_list //segments to plot );void plot_row_cells( //draw words WINDOW win, //window tro draw in COLOUR colour, //colour of lines TO_ROW *row, //for location float xshift, //amount of shift ICOORDELT_LIST *cells //cells to draw );#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?