#include <pithsync.h>
'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.
FPCUTPT::FPCUTPT | ( | ) | [inline] |
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 }
UINT32 FPCUTPT::back_balance [private] |
Definition at line 127 of file pithsync.h.
double FPCUTPT::cost [private] |
UINT32 FPCUTPT::fwd_balance [private] |
Definition at line 128 of file pithsync.h.
double FPCUTPT::mean_sum [private] |
INT16 FPCUTPT::mid_cuts [private] |
FPCUTPT* FPCUTPT::pred [private] |
INT16 FPCUTPT::region_index [private] |
double FPCUTPT::sq_sum [private] |
INT32 FPCUTPT::xpos [private] |