SaDVIO
Classes | Typedefs | Functions
upm Namespace Reference

Classes

struct  DrawingBranch
 
class  EdgeDrawer
 
class  ELSED
 
struct  ELSEDParams
 
class  FullSegmentInfo
 
struct  LineDetectionExtraInfo
 
struct  Pixel
 
struct  SalientSegment
 

Typedefs

typedef std::shared_ptr< EdgeDrawerEdgeDrawerPtr
 
typedef cv::Vec4f Segment
 
typedef std::vector< SegmentSegments
 
typedef std::shared_ptr< LineDetectionExtraInfoLineDetectionExtraInfoPtr
 
typedef std::vector< PixelImageEdge
 
typedef std::vector< ImageEdgeImageEdges
 
typedef std::vector< SalientSegmentSalientSegments
 

Functions

Pixel calcLastPixelWithDirection (const Pixel &px, uint8_t lastDir)
 
int calculateNumPtsToTrim (int nPoints)
 
float lerp (float s, float e, float t)
 
float blerp (float c00, float c10, float c01, float c11, float tx, float ty)
 
double circularDist (double valueA, double valueB, double mod=360)
 Calculate the angular distance between two angles valueA and valueB. Taking into account that 0 degrees is equivalent to 360. More...
 
cv::Point2f getProjectionPtn (const cv::Vec3f &l, const cv::Point2f &p)
 Gets the projection of a point into a line. More...
 
float segLength (const Segment &s)
 Calculates the length of a line segment. More...
 
float segAngle (const Segment &s)
 Calculates the angle of a line segment. More...
 

Typedef Documentation

◆ EdgeDrawerPtr

typedef std::shared_ptr<EdgeDrawer> upm::EdgeDrawerPtr

◆ ImageEdge

typedef std::vector<Pixel> upm::ImageEdge

◆ ImageEdges

typedef std::vector<ImageEdge> upm::ImageEdges

◆ LineDetectionExtraInfoPtr

◆ SalientSegments

typedef std::vector<SalientSegment> upm::SalientSegments

◆ Segment

typedef cv::Vec4f upm::Segment

◆ Segments

typedef std::vector<Segment> upm::Segments

Function Documentation

◆ blerp()

float upm::blerp ( float  c00,
float  c10,
float  c01,
float  c11,
float  tx,
float  ty 
)
inline

◆ calcLastPixelWithDirection()

Pixel upm::calcLastPixelWithDirection ( const Pixel px,
uint8_t  lastDir 
)
inline

◆ calculateNumPtsToTrim()

int upm::calculateNumPtsToTrim ( int  nPoints)
inline

◆ circularDist()

double upm::circularDist ( double  valueA,
double  valueB,
double  mod = 360 
)
inline

Calculate the angular distance between two angles valueA and valueB. Taking into account that 0 degrees is equivalent to 360.

Parameters
valueA
valueB
modThe number of elements in the circle (2 * PI to radians or 360 for degrees)
Returns

◆ getProjectionPtn()

cv::Point2f upm::getProjectionPtn ( const cv::Vec3f &  l,
const cv::Point2f &  p 
)
inline

Gets the projection of a point into a line.

Parameters
lThe general line ecuation ax + by +c = 0 in format (a, b, c)
pThe point which we want to calculate its projection over the line
Returns
The point p' which is the projection of p over the line.

◆ lerp()

float upm::lerp ( float  s,
float  e,
float  t 
)
inline

◆ segAngle()

float upm::segAngle ( const Segment s)
inline

Calculates the angle of a line segment.

Parameters
sThe input segment
Returns
The angle that the segment forms with the X-axis in radians. Range (pi/2, -pi/2].

◆ segLength()

float upm::segLength ( const Segment s)
inline

Calculates the length of a line segment.

Parameters
sThe input segment
Returns
The length of the segment