This class contains information relative to a segment.
More...
Detailed Description
This class contains information relative to a segment.
Definition at line 18 of file SegmentHypothesis.hpp.
#include <SegmentHypothesis.hpp>
List of all members.
Public Member Functions |
| SegmentHypothesis (double x_o, double y_o, double angle_o) |
| SegmentHypothesis (const SegmentHypothesis &_hyp) |
void | addPoint (double _t, double _x, double _y, double _angle, double sigmaPx) |
| Add an observation of the segment.
|
const jblas::vec2 & | lineParameters () const |
void | dump (bool _verbose) const |
int | countPoints () const |
void | setExtremity1 (double _x1, double _y1) |
| Set the first extremity, the coordinates given as parameters will be projected on the line.
|
double | x1 () const |
double | y1 () const |
double | t1 () const |
void | setExtremity2 (double _x2, double _y2) |
| Set the second extremity, the coordinates given as parameters will be projected on the line.
|
double | x2 () const |
double | y2 () const |
double | t2 () const |
double | squareLength () const |
void | merge (const SegmentHypothesis &rhs) |
const LineFitterKalman2 & | lineFitter () const |
unsigned int | id () const |
void | setId (unsigned int _id) |
const SegmentHypothesisDebug * | segmentHypothesisDebug () const |
SegmentHypothesisDebug * | segmentHypothesisDebug () |
void | setSegmentHypothesisDebug (SegmentHypothesisDebug *) |
bool | isCompatible (const SegmentHypothesis &) const |
void | setUncertainty (double sigma_u, double sigma_x0, double sigma_v, double sigma_y0) |
GradientStatsDescriptor & | gradientDescriptor () |
const GradientStatsDescriptor & | gradientDescriptor () const |
void | setGradientDescriptor (const GradientStatsDescriptor &descriptor) |
void | setDescriptor (GradientsDescriptor *_descriptor) |
const GradientsDescriptor * | descriptor () const |
void | applyScale (double v) |
| Apply a scale on a segment.
|
void | computeTMinMax (double &_tMin, double &_tMax) const |
| Compute the minimal and maximal value of t.
|
Private Member Functions |
void | incRef () |
void | decRef () |
bool | isRef () |
void | solve () const |
Private Attributes |
Private *const | d |
Friends |
class | SegmentsSet |
Member Function Documentation
Add an observation of the segment.
- Parameters:
-
_t | distance to the origin (usefull for parametric representation of a segment, like in LineFitterKalman2 ) |
_x | x-coordinate of the observation |
_y | y-coordinate of the observation |
_angle | angle arround the point |
- Returns:
- the number of points used to generate this segment hypothesis.
- Returns:
- the square length of the segment
The documentation for this class was generated from the following file: