FPCUTPT Class Reference

#include <pithsync.h>

List of all members.


Detailed Description

Class dealing with arrays of points used in cutting/segmentation.

'Code to find the optimum fixed pitch segmentation of some blobs.'

Hypothesis is that, if we step back, this 'looks' like a crack in the surface of a frozen lake, where a FPCUTPT is a subsequent point from which the crack progresses to next point. Tesseract cracks the blobs this way, looking for something that statistically satisfies a bunch of constraints.

Can be just a point, ex: end of best path, or an array of point, ex: cutpts.

FIX: How are cuts related to segments? Are they co-existing? The FPSEGPT::FPSEGPT //constructor seems to suggest this, 'Constructor to make a new FPSEGPT. The existing FPCUTPT is duplicated.'

Hypothesis is that while cut points are relative to a starting point and an ending point, ie successive points are relatively oriented, segments specify both starting and ending points. I'm confused.

Also, sometimes a cut is made but marked as 'faked', probably just to determine whether it improved the rating. If it did, it's marked as non-fake, otherwise it's abandoned.

Definition at line 57 of file pithsync.h.

Public Member Functions

Public Attributes

Private Attributes


Constructor & Destructor Documentation

FPCUTPT::FPCUTPT (  )  [inline]

Definition at line 60 of file pithsync.h.

00060               {  //empty
00061     }


Member Function Documentation

void FPCUTPT::assign ( FPCUTPT  cutpts[],
INT16  array_origin,
INT16  x,
BOOL8  faking,
BOOL8  mid_cut,
INT16  offset,
STATS projection,
float  projection_scale,
INT16  zero_count,
INT16  pitch,
INT16  pitch_error 
)

void FPCUTPT::assign_cheap ( FPCUTPT  cutpts[],
INT16  array_origin,
INT16  x,
BOOL8  faking,
BOOL8  mid_cut,
INT16  offset,
STATS projection,
float  projection_scale,
INT16  zero_count,
INT16  pitch,
INT16  pitch_error 
)

INT16 FPCUTPT::cheap_cuts (  )  const [inline]

Definition at line 112 of file pithsync.h.

References mid_cuts.

Referenced by FPSEGPT::FPSEGPT().

00112                              {  //no of mi cuts
00113       return mid_cuts;
00114     }

double FPCUTPT::cost_function (  )  [inline]

Definition at line 100 of file pithsync.h.

References cost.

Referenced by FPSEGPT::FPSEGPT().

00100                            { 
00101       return cost;
00102     }

INT16 FPCUTPT::index (  )  const [inline]

Definition at line 115 of file pithsync.h.

References region_index.

00115                         { 
00116       return region_index;
00117     }

INT32 FPCUTPT::position (  )  [inline]

Definition at line 97 of file pithsync.h.

References xpos.

Referenced by check_pitch_sync2(), check_pitch_sync3(), and FPSEGPT::FPSEGPT().

00097                      {  //acces func
00098       return xpos;
00099     }

FPCUTPT* FPCUTPT::previous (  )  [inline]

Definition at line 109 of file pithsync.h.

References pred.

Referenced by check_pitch_sync2(), and check_pitch_sync3().

00109                         { 
00110       return pred;
00111     }

void FPCUTPT::setup ( FPCUTPT  cutpts[],
INT16  array_origin,
STATS projection,
INT16  zero_count,
INT16  pitch,
INT16  x,
INT16  offset 
)

double FPCUTPT::squares (  )  [inline]

Definition at line 103 of file pithsync.h.

References sq_sum.

Referenced by FPSEGPT::FPSEGPT().

00103                      { 
00104       return sq_sum;
00105     }

double FPCUTPT::sum (  )  [inline]

Definition at line 106 of file pithsync.h.

References mean_sum.

Referenced by check_pitch_sync2(), check_pitch_sync3(), and FPSEGPT::FPSEGPT().

00106                  { 
00107       return mean_sum;
00108     }


Member Data Documentation

UINT32 FPCUTPT::back_balance [private]

Definition at line 127 of file pithsync.h.

double FPCUTPT::cost [private]

Definition at line 132 of file pithsync.h.

Referenced by cost_function().

INT16 FPCUTPT::fake_count

Definition at line 121 of file pithsync.h.

Referenced by FPSEGPT::FPSEGPT().

BOOL8 FPCUTPT::faked

Definition at line 119 of file pithsync.h.

Referenced by FPSEGPT::FPSEGPT().

UINT32 FPCUTPT::fwd_balance [private]

Definition at line 128 of file pithsync.h.

double FPCUTPT::mean_sum [private]

Definition at line 130 of file pithsync.h.

Referenced by sum().

INT16 FPCUTPT::mid_cuts [private]

Definition at line 125 of file pithsync.h.

Referenced by cheap_cuts().

FPCUTPT* FPCUTPT::pred [private]

Definition at line 129 of file pithsync.h.

Referenced by previous().

INT16 FPCUTPT::region_index [private]

Definition at line 124 of file pithsync.h.

Referenced by index().

double FPCUTPT::sq_sum [private]

Definition at line 131 of file pithsync.h.

Referenced by squares().

BOOL8 FPCUTPT::terminal

Definition at line 120 of file pithsync.h.

Referenced by FPSEGPT::FPSEGPT().

INT32 FPCUTPT::xpos [private]

Definition at line 126 of file pithsync.h.

Referenced by position().


The documentation for this class was generated from the following file:
Generated on Wed Feb 28 19:49:31 2007 for Tesseract by  doxygen 1.5.1