tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
C_BLOB Class Reference

#include <stepblob.h>

Inheritance diagram for C_BLOB:
Collaboration diagram for C_BLOB:

Public Member Functions

 C_BLOB ()=default
 
 C_BLOB (C_OUTLINE_LIST *outline_list)
 
 C_BLOB (C_OUTLINE *outline)
 
void CheckInverseFlagAndDirection ()
 
C_OUTLINE_LIST * out_list ()
 
TBOX bounding_box () const
 
int32_t area ()
 
int32_t perimeter ()
 
int32_t outer_area ()
 
int32_t count_transitions (int32_t threshold)
 
void move (const ICOORD vec)
 
void rotate (const FCOORD &rotation)
 
void ComputeEdgeOffsets (int threshold, Pix *pix)
 
int16_t EstimateBaselinePosition ()
 
Pix * render ()
 
Pix * render_outline ()
 
void plot (ScrollView *window, ScrollView::Color blob_colour, ScrollView::Color child_colour)
 
void plot_normed (const DENORM &denorm, ScrollView::Color blob_colour, ScrollView::Color child_colour, ScrollView *window)
 
C_BLOBoperator= (const C_BLOB &source)
 

Static Public Member Functions

static void ConstructBlobsFromOutlines (bool good_blob, C_OUTLINE_LIST *outline_list, C_BLOB_IT *good_blobs_it, C_BLOB_IT *bad_blobs_it)
 
static C_BLOBFakeBlob (const TBOX &box)
 
static C_BLOBdeep_copy (const C_BLOB *src)
 
static int SortByXMiddle (const void *v1, const void *v2)
 

Private Attributes

C_OUTLINE_LIST outlines
 

Constructor & Destructor Documentation

◆ C_BLOB() [1/3]

C_BLOB::C_BLOB ( )
default

◆ C_BLOB() [2/3]

C_BLOB::C_BLOB ( C_OUTLINE_LIST *  outline_list)
explicit

◆ C_BLOB() [3/3]

C_BLOB::C_BLOB ( C_OUTLINE outline)
explicit

Member Function Documentation

◆ area()

int32_t C_BLOB::area ( )

◆ bounding_box()

TBOX C_BLOB::bounding_box ( ) const

◆ CheckInverseFlagAndDirection()

void C_BLOB::CheckInverseFlagAndDirection ( )

◆ ComputeEdgeOffsets()

void C_BLOB::ComputeEdgeOffsets ( int  threshold,
Pix *  pix 
)

◆ ConstructBlobsFromOutlines()

void C_BLOB::ConstructBlobsFromOutlines ( bool  good_blob,
C_OUTLINE_LIST *  outline_list,
C_BLOB_IT *  good_blobs_it,
C_BLOB_IT *  bad_blobs_it 
)
static

◆ count_transitions()

int32_t C_BLOB::count_transitions ( int32_t  threshold)

◆ deep_copy()

static C_BLOB* C_BLOB::deep_copy ( const C_BLOB src)
inlinestatic

◆ EstimateBaselinePosition()

int16_t C_BLOB::EstimateBaselinePosition ( )

◆ FakeBlob()

C_BLOB * C_BLOB::FakeBlob ( const TBOX box)
static

◆ move()

void C_BLOB::move ( const ICOORD  vec)

◆ operator=()

C_BLOB& C_BLOB::operator= ( const C_BLOB source)
inline

◆ out_list()

C_OUTLINE_LIST* C_BLOB::out_list ( )
inline

◆ outer_area()

int32_t C_BLOB::outer_area ( )

◆ perimeter()

int32_t C_BLOB::perimeter ( )

◆ plot()

void C_BLOB::plot ( ScrollView window,
ScrollView::Color  blob_colour,
ScrollView::Color  child_colour 
)

◆ plot_normed()

void C_BLOB::plot_normed ( const DENORM denorm,
ScrollView::Color  blob_colour,
ScrollView::Color  child_colour,
ScrollView window 
)

◆ render()

Pix * C_BLOB::render ( )

◆ render_outline()

Pix * C_BLOB::render_outline ( )

◆ rotate()

void C_BLOB::rotate ( const FCOORD rotation)

◆ SortByXMiddle()

static int C_BLOB::SortByXMiddle ( const void *  v1,
const void *  v2 
)
inlinestatic

Member Data Documentation

◆ outlines

C_OUTLINE_LIST C_BLOB::outlines
private

The documentation for this class was generated from the following files: