#include <opencv2/line_descriptor/descriptor.hpp>
|
| LSDDetector () |
|
| LSDDetector (LSDParam _params) |
|
void | detect (const Mat &image, std::vector< KeyLine > &keypoints, int scale, int numOctaves, const Mat &mask=Mat()) |
| 检测图像中的线。
|
|
void | detect (const std::vector< Mat > &images, std::vector< std::vector< KeyLine > > &keylines, int scale, int numOctaves, const std::vector< Mat > &masks=std::vector< Mat >()) const |
|
| Algorithm () |
|
virtual | ~Algorithm () |
|
virtual void | clear () |
| 清除算法状态。
|
|
virtual bool | empty () const |
| 如果 Algorithm 为空(例如,在最开始或读取不成功之后),则返回 true。
|
|
virtual String | getDefaultName () const |
|
virtual void | read (const FileNode &fn) |
| 从文件存储中读取算法参数。
|
|
virtual void | save (const String &filename) const |
|
void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
|
virtual void | write (FileStorage &fs) const |
| 将算法参数存储在文件存储中。
|
|
void | write (FileStorage &fs, const String &name) const |
|
◆ LSDDetector() [1/2]
cv::line_descriptor::LSDDetector::LSDDetector |
( |
| ) |
|
|
inline |
Python |
---|
| cv.line_descriptor.LSDDetector( | _params | ) -> | <line_descriptor_LSDDetector object> |
◆ LSDDetector() [2/2]
cv::line_descriptor::LSDDetector::LSDDetector |
( |
LSDParam |
_params | ) |
|
|
inline |
Python |
---|
| cv.line_descriptor.LSDDetector( | _params | ) -> | <line_descriptor_LSDDetector object> |
◆ createLSDDetector() [1/2]
static Ptr< LSDDetector > cv::line_descriptor::LSDDetector::createLSDDetector |
( |
| ) |
|
|
static |
Python |
---|
| cv.line_descriptor.LSDDetector.createLSDDetector( | | ) -> | retval |
| cv.line_descriptor.LSDDetector.createLSDDetectorWithParams( | params | ) -> | retval |
| cv.line_descriptor.LSDDetector_createLSDDetector( | | ) -> | retval |
| cv.line_descriptor.LSDDetector_createLSDDetectorWithParams( | params | ) -> | retval |
◆ createLSDDetector() [2/2]
Python |
---|
| cv.line_descriptor.LSDDetector.createLSDDetector( | | ) -> | retval |
| cv.line_descriptor.LSDDetector.createLSDDetectorWithParams( | params | ) -> | retval |
| cv.line_descriptor.LSDDetector_createLSDDetector( | | ) -> | retval |
| cv.line_descriptor.LSDDetector_createLSDDetectorWithParams( | params | ) -> | retval |
◆ detect() [1/2]
void cv::line_descriptor::LSDDetector::detect |
( |
const Mat & |
image, |
|
|
std::vector< KeyLine > & |
keypoints, |
|
|
int |
scale, |
|
|
int |
numOctaves, |
|
|
const Mat & |
mask = Mat() |
|
) |
| |
Python |
---|
| cv.line_descriptor.LSDDetector.detect( | image, scale, numOctaves[, mask] | ) -> | keypoints |
| cv.line_descriptor.LSDDetector.detect( | images, keylines, scale, numOctaves[, masks] | ) -> | None |
检测图像中的线。
- 参数
-
image | 输入图像 |
keypoints | 将存储一个或多个图像的提取线的向量 |
scale | 金字塔生成中使用的比例因子 |
numOctaves | 金字塔内的八度数 |
mask | 掩码矩阵,仅检测感兴趣的 KeyLines |
◆ detect() [2/2]
void cv::line_descriptor::LSDDetector::detect |
( |
const std::vector< Mat > & |
images, |
|
|
std::vector< std::vector< KeyLine > > & |
keylines, |
|
|
int |
scale, |
|
|
int |
numOctaves, |
|
|
const std::vector< Mat > & |
masks = std::vector< Mat >() |
|
) |
| const |
Python |
---|
| cv.line_descriptor.LSDDetector.detect( | image, scale, numOctaves[, mask] | ) -> | keypoints |
| cv.line_descriptor.LSDDetector.detect( | images, keylines, scale, numOctaves[, masks] | ) -> | None |
这是为了方便提供的重载成员函数。它与上面的函数的区别仅在于它接受的参数。
- 参数
-
images | 输入图像 |
keylines | 将存储一个或多个图像的提取线的向量集 |
scale | 金字塔生成中使用的比例因子 |
numOctaves | 金字塔内的八度数 |
masks | 掩码矩阵向量,用于从每个输入图像中仅检测感兴趣的 KeyLines |
此类的文档是从以下文件生成的