#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 对象> |
◆ LSDDetector() [2/2]
| cv::line_descriptor::LSDDetector::LSDDetector |
( |
LSDParam | _params | ) |
|
|
inline |
| Python |
|---|
| cv.line_descriptor.LSDDetector( | _params | ) -> | <line_descriptor_LSDDetector 对象> |
◆ 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] | ) -> | 无 |
检测图像内的线。
- 参数
-
| 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] | ) -> | 无 |
这是一个重载的成员函数,为了方便起见而提供。它与上述函数的不同之处仅在于它接受的参数。
- 参数
-
| images | 输入图像 |
| keylines | 将存储一个或多个图像的提取线的向量集 |
| scale | 金字塔生成中使用的比例因子 |
| numOctaves | 金字塔内部的八度音阶数 |
| 遮罩 | 用于仅从每个输入图像检测感兴趣的 KeyLines 的掩码矩阵向量 |
此类文档由以下文件生成