tesseract v5.3.3.20231005
mfoutline.h File Reference
#include "blobs.h"
#include "fpoint.h"
#include "oldlist.h"
#include "params.h"

Go to the source code of this file.

Classes

struct  tesseract::MFEDGEPT
 

Namespaces

namespace  tesseract
 

Macros

#define AverageOf(A, B)   (((A) + (B)) / 2)
 

Typedefs

using tesseract::MFOUTLINE = LIST
 

Enumerations

enum  tesseract::DIRECTION : uint8_t {
  tesseract::north , tesseract::south , tesseract::east , tesseract::west ,
  tesseract::northeast , tesseract::northwest , tesseract::southeast , tesseract::southwest
}
 
enum  tesseract::OUTLINETYPE { tesseract::outer , tesseract::hole }
 
enum  tesseract::NORM_METHOD { tesseract::baseline , tesseract::character }
 

Functions

void tesseract::ComputeBlobCenter (TBLOB *Blob, TPOINT *BlobCenter)
 
LIST tesseract::ConvertBlob (TBLOB *blob)
 
MFOUTLINE tesseract::ConvertOutline (TESSLINE *outline)
 
LIST tesseract::ConvertOutlines (TESSLINE *outline, LIST mf_outlines, OUTLINETYPE outline_type)
 
void tesseract::FilterEdgeNoise (MFOUTLINE Outline, float NoiseSegmentLength)
 
void tesseract::FindDirectionChanges (MFOUTLINE Outline, float MinSlope, float MaxSlope)
 
void tesseract::FreeMFOutline (void *arg)
 
void tesseract::FreeOutlines (LIST Outlines)
 
void tesseract::MarkDirectionChanges (MFOUTLINE Outline)
 
MFOUTLINE tesseract::NextExtremity (MFOUTLINE EdgePoint)
 
void tesseract::NormalizeOutline (MFOUTLINE Outline, float XOrigin)
 
void tesseract::ChangeDirection (MFOUTLINE Start, MFOUTLINE End, DIRECTION Direction)
 
void tesseract::CharNormalizeOutline (MFOUTLINE Outline, const DENORM &cn_denorm)
 
void tesseract::ComputeDirection (MFEDGEPT *Start, MFEDGEPT *Finish, float MinSlope, float MaxSlope)
 
MFOUTLINE tesseract::NextDirectionChange (MFOUTLINE EdgePoint)
 

Variables

const float tesseract::MF_SCALE_FACTOR = 0.5f / kBlnXHeight
 

Macro Definition Documentation

◆ AverageOf

#define AverageOf (   A,
 
)    (((A) + (B)) / 2)

Macros

Definition at line 58 of file mfoutline.h.