Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes | Friends
jafar::dseg::SegmentHypothesis Class Reference

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::vec2lineParameters () 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 LineFitterKalman2lineFitter () const
unsigned int id () const
void setId (unsigned int _id)
const SegmentHypothesisDebugsegmentHypothesisDebug () const
SegmentHypothesisDebugsegmentHypothesisDebug ()
void setSegmentHypothesisDebug (SegmentHypothesisDebug *)
bool isCompatible (const SegmentHypothesis &) const
void setUncertainty (double sigma_u, double sigma_x0, double sigma_v, double sigma_y0)
GradientStatsDescriptorgradientDescriptor ()
const GradientStatsDescriptorgradientDescriptor () const
void setGradientDescriptor (const GradientStatsDescriptor &descriptor)
void setDescriptor (GradientsDescriptor *_descriptor)
const GradientsDescriptordescriptor () 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

void jafar::dseg::SegmentHypothesis::addPoint ( double  _t,
double  _x,
double  _y,
double  _angle,
double  sigmaPx 
)

Add an observation of the segment.

Parameters:
_tdistance to the origin (usefull for parametric representation of a segment, like in LineFitterKalman2 )
_xx-coordinate of the observation
_yy-coordinate of the observation
_angleangle 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:34 for Jafar by doxygen 1.7.6.1
LAAS-CNRS