/home/rays/src/opensrc/tesseract-ocr/ccstruct/ocrblock.cpp File Reference

#include "mfcpch.h"
#include <stdlib.h>
#include "blckerr.h"
#include "ocrblock.h"
#include "stepblob.h"
#include "tprintf.h"

Defines

#define BLOCK_LABEL_HEIGHT   150
#define ROW_SPACING   5

Functions

int decreasing_top_order (const void *row1, const void *row2)
bool LeftMargin (ICOORDELT_LIST *segments, int x, int *margin)
bool RightMargin (ICOORDELT_LIST *segments, int x, int *margin)
void PrintSegmentationStats (BLOCK_LIST *block_list)
void ExtractBlobsFromSegmentation (BLOCK_LIST *blocks, C_BLOB_LIST *output_blob_list)
void RefreshWordBlobsFromNewBlobs (BLOCK_LIST *block_list, C_BLOB_LIST *new_blobs, C_BLOB_LIST *not_found_blobs)

Define Documentation

#define BLOCK_LABEL_HEIGHT   150
#define ROW_SPACING   5

Function Documentation

int decreasing_top_order ( const void *  row1,
const void *  row2 
)

decreasing_top_order

Sort Comparator: Return <0 if row1 top < row2 top

void ExtractBlobsFromSegmentation ( BLOCK_LIST *  blocks,
C_BLOB_LIST *  output_blob_list 
)
bool LeftMargin ( ICOORDELT_LIST *  segments,
int  x,
int *  margin 
)
void PrintSegmentationStats ( BLOCK_LIST *  block_list  ) 
void RefreshWordBlobsFromNewBlobs ( BLOCK_LIST *  block_list,
C_BLOB_LIST *  new_blobs,
C_BLOB_LIST *  not_found_blobs 
)
bool RightMargin ( ICOORDELT_LIST *  segments,
int  x,
int *  margin 
)
Generated on Thu Feb 2 08:19:21 2012 for Tesseract by  doxygen 1.6.3