Class cv::line_descriptor::LSDDetector#

Collaboration diagram for cv::line_descriptor::LSDDetector:

Public Member Functions#

Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

Constructor & Destructor Documentation#

LSDDetector()#

cv::line_descriptor::LSDDetector::LSDDetector()

Python:

cv.line_descriptor.LSDDetector(_params) -> <line_descriptor_LSDDetector object>

LSDDetector()#

cv::line_descriptor::LSDDetector::LSDDetector(LSDParam _params)

Python:

cv.line_descriptor.LSDDetector(_params) -> <line_descriptor_LSDDetector object>

Member Function Documentation#

detect()#

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])

Detect lines inside an image.

Parameters

  • image — input image

  • keypoints — vector that will store extracted lines for one or more images

  • scale — scale factor used in pyramids generation

  • numOctaves — number of octaves inside pyramid

  • mask — mask matrix to detect only KeyLines of interest

detect()#

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 >() )

Python:

cv.line_descriptor.LSDDetector.detect(image, scale, numOctaves[, mask]) -> keypoints
cv.line_descriptor.LSDDetector.detect(images, keylines, scale, numOctaves[, masks])

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

Parameters

  • images — input images

  • keylines — set of vectors that will store extracted lines for one or more images

  • scale — scale factor used in pyramids generation

  • numOctaves — number of octaves inside pyramid

  • masks — vector of mask matrices to detect only KeyLines of interest from each input image

createLSDDetector()#

static Ptr< LSDDetector > cv::line_descriptor::LSDDetector::createLSDDetector()

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()#

static Ptr< LSDDetector > cv::line_descriptor::LSDDetector::createLSDDetector(LSDParam params)

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

computeGaussianPyramid()#

void cv::line_descriptor::LSDDetector::computeGaussianPyramid(
const Mat & image,
int numOctaves,
int scale )

detectImpl()#

void cv::line_descriptor::LSDDetector::detectImpl(
const Mat & imageSrc,
std::vector< KeyLine > & keylines,
int numOctaves,
int scale,
const Mat & mask )

Member Data Documentation#

gaussianPyrs#

std::vector< cv::Mat > cv::line_descriptor::LSDDetector::gaussianPyrs

params#

LSDParam cv::line_descriptor::LSDDetector::params

Source file#

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