SaDVIO
|
#include <FullSegmentInfo.h>
Public Member Functions | |
FullSegmentInfo (const std::vector< Pixel > &pts) | |
FullSegmentInfo (const std::vector< Pixel > &pts, int startIdx) | |
void | init (const std::vector< Pixel > &pts, int startIdx) |
bool | isInlier (int x, int y, double lineFitErrThreshold) |
void | addPixel (int x, int y, int pixelIndexInEdge, bool isPixelAtTheEnd=true) |
void | finish () |
void | skipPositions () |
double | getFitError () const |
void | removeLastPx (bool removeFromTheEnd=true) |
void | reset () |
bool | horizontal () const |
int | getNumOfPixels () const |
const Segment & | getEndpoints () const |
ImageEdge | getPixels () const |
const Pixel & | getFirstPixel () const |
const Pixel & | getLastPixel () const |
const Pixel * | begin () const |
const Pixel * | end () const |
const cv::Vec3d & | getLineEquation () const |
bool | hasSecondSideElements () const |
Public Attributes | |
bool | firstEndpointExtended = false |
bool | secondEndpointExtended = false |
This class represents a line segment and its associated information such as:
The implementation is highly optimized to add or subtract new pixels and recompute all parameters. Internally,
upm::FullSegmentInfo::FullSegmentInfo | ( | const std::vector< Pixel > & | pts | ) |
upm::FullSegmentInfo::FullSegmentInfo | ( | const std::vector< Pixel > & | pts, |
int | startIdx | ||
) |
void upm::FullSegmentInfo::addPixel | ( | int | x, |
int | y, | ||
int | pixelIndexInEdge, | ||
bool | isPixelAtTheEnd = true |
||
) |
|
inline |
|
inline |
void upm::FullSegmentInfo::finish | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
ImageEdge upm::FullSegmentInfo::getPixels | ( | ) | const |
|
inline |
|
inline |
void upm::FullSegmentInfo::init | ( | const std::vector< Pixel > & | pts, |
int | startIdx | ||
) |
|
inline |
void upm::FullSegmentInfo::removeLastPx | ( | bool | removeFromTheEnd = true | ) |
|
inline |
void upm::FullSegmentInfo::skipPositions | ( | ) |
bool upm::FullSegmentInfo::firstEndpointExtended = false |
bool upm::FullSegmentInfo::secondEndpointExtended = false |