CentLine Class Reference

CentLine's are strings of pixels that could be parts of actual lines. More...

Inherits Base.

List of all members.

Public Member Functions

 CentLine ()
 The main constructor.
CentLineoperator= (const CentLine &copy)
 copy everything except number.
void clear ()
 Clears all but num_.
float angle ()
 returns the angel of the CentLine.
void clear_seg_data ()
 Clears the two lists sd_beg and sd_end.
float contrast_meas (ushort ib, ushort ie, int &pix_cnt)
 Returns the sum of the contrast list between ib and ie.
void draw (PiXFrame *pf, std::ostream &ostr)
 Describe the centline.
void rle_insert_list (PiXFrame *pf)
 Make the rle (run-length-encoded) from the list.
bool trace_tips (PiXFrame *pf)
 Set the tips equal to the begin and end of the list.


Detailed Description

CentLine's are strings of pixels that could be parts of actual lines.

CentLines are intended to be transitory, only existing until the actual lines are produced by PiXFrame::line_trace(). CentLines are produced by PiXFrame::line_cent_trace() using roof values or by PiXFrame::line_cent_trace_neur() using a search circle.

The key features of a CentLine are:


Constructor & Destructor Documentation

CentLine::CentLine (  )  [inline]

The main constructor.

num_ is assigned by PiXFrame::add_base().


Member Function Documentation

void CentLine::clear (  )  [inline]

Clears all but num_.

num_ is assigned by PiXFrame::add_base(char type) on allocation

Reimplemented from Base.

float CentLine::angle (  )  [inline]

returns the angel of the CentLine.

The angle is calculated by either PiXFrame::line_cent_trace() or PiXFrame::line_cent_trace_neur() using the two ends of the center of line list.

Reimplemented from Base.

void CentLine::clear_seg_data (  )  [inline]

Clears the two lists sd_beg and sd_end.

  • sd_beg is the list of other CentLines near the beginning.
  • sd_end is the list of other CentLines near the ending.

float CentLine::contrast_meas ( ushort  ib,
ushort  ie,
int &  pix_cnt 
) [inline]

Returns the sum of the contrast list between ib and ie.

This also adds to pix_cnt the number pixels between ib and ie.

void CentLine::draw ( PiXFrame pf,
std::ostream &  ostr 
)

Describe the centline.

This is used to describe the centline in a dialog. It is used mostly when testing, although it could have other uses.

Reimplemented from Base.

void CentLine::rle_insert_list ( PiXFrame pf  ) 

Make the rle (run-length-encoded) from the list.

This may not need doing unless the CentLine has to be drawn.

bool CentLine::trace_tips ( PiXFrame pf  )  [virtual]

Set the tips equal to the begin and end of the list.

This also sets the length and estimates the width

Reimplemented from Base.


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

Generated on Fri Aug 1 22:02:12 2008 for pixtrace by  doxygen 1.5.5