OpenCV  4.10.0
Open Source Computer Vision
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
cv::line_descriptor::LSDDetector Class Reference

#include <opencv2/line_descriptor/descriptor.hpp>

Collaboration diagram for cv::line_descriptor::LSDDetector:

Public Member Functions

 LSDDetector ()
 
 LSDDetector (LSDParam _params)
 
void detect (const Mat &image, std::vector< KeyLine > &keypoints, int scale, int numOctaves, const Mat &mask=Mat())
 Detect lines inside an image.
 
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
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage.
 
virtual void save (const String &filename) const
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage.
 
void write (FileStorage &fs, const String &name) const
 

Static Public Member Functions

static Ptr< LSDDetectorcreateLSDDetector ()
 Creates ad LSDDetector object, using smart pointers.
 
static Ptr< LSDDetectorcreateLSDDetector (LSDParam params)
 
- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 Loads algorithm from the file.
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String.
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 Reads algorithm from the file node.
 

Additional Inherited Members

- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

Constructor & Destructor Documentation

◆ 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>

Member Function Documentation

◆ 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

Creates ad LSDDetector object, using smart pointers.

◆ createLSDDetector() [2/2]

static Ptr< LSDDetector > cv::line_descriptor::LSDDetector::createLSDDetector ( LSDParam  params)
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

◆ 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

Detect lines inside an image.

Parameters
imageinput image
keypointsvector that will store extracted lines for one or more images
scalescale factor used in pyramids generation
numOctavesnumber of octaves inside pyramid
maskmask matrix to detect only KeyLines of interest

◆ 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

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
imagesinput images
keylinesset of vectors that will store extracted lines for one or more images
scalescale factor used in pyramids generation
numOctavesnumber of octaves inside pyramid
masksvector of mask matrices to detect only KeyLines of interest from each input image

The documentation for this class was generated from the following file: