SaDVIO
|
#include <ELSED.h>
Public Member Functions | |
ELSED (const ELSEDParams ¶ms=ELSEDParams()) | |
Segments | detect (const cv::Mat &image) |
Detects segments in the input image. More... | |
SalientSegments | detectSalient (const cv::Mat &image) |
ImageEdges | detectEdges (const cv::Mat &image) |
const LineDetectionExtraInfo & | getImgInfo () const |
const LineDetectionExtraInfoPtr & | getImgInfoPtr () const |
void | processImage (const cv::Mat &image) |
void | clear () |
ImageEdges | getAllEdges () const |
ImageEdges | getSegmentEdges () const |
const EdgeDrawerPtr & | getDrawer () const |
Static Public Member Functions | |
static void | computeAnchorPoints (const cv::Mat &dirImage, const cv::Mat &gradImageWO, const cv::Mat &gradImage, int scanInterval, int anchorThresh, std::vector< Pixel > &anchorPoints) |
static LineDetectionExtraInfoPtr | computeGradients (const cv::Mat &srcImg, short gradientTh) |
This class implements the method: [Suárez], I., Buenaposada, J. M., & Baumela, L. (2021). ELSED: Enhanced Line SEgment Drawing. arXiv preprint arXiv:2108.03144.
It is an efficient line segment detector amenable to use in low power devices such as drones or smartphones. The method takes an image as input and outputs a list of detected segments.
|
explicit |
void upm::ELSED::clear | ( | ) |
|
inlinestatic |
|
static |
Segments upm::ELSED::detect | ( | const cv::Mat & | image | ) |
Detects segments in the input image.
image | An input image. The parameters are adapted to images of size 640x480. Bigger images will generate more segments. |
ImageEdges upm::ELSED::detectEdges | ( | const cv::Mat & | image | ) |
SalientSegments upm::ELSED::detectSalient | ( | const cv::Mat & | image | ) |
ImageEdges upm::ELSED::getAllEdges | ( | ) | const |
|
inline |
const LineDetectionExtraInfo & upm::ELSED::getImgInfo | ( | ) | const |
const LineDetectionExtraInfoPtr & upm::ELSED::getImgInfoPtr | ( | ) | const |
ImageEdges upm::ELSED::getSegmentEdges | ( | ) | const |
void upm::ELSED::processImage | ( | const cv::Mat & | image | ) |