Inherits Base.
Public Member Functions | |
| CentLine () | |
| The main constructor. | |
| CentLine & | operator= (const CentLine ©) |
| 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. | |
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:
| CentLine::CentLine | ( | ) | [inline] |
The main constructor.
num_ is assigned by PiXFrame::add_base().
| 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.
| 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.
1.5.5