| detect (cv.BinaryDescriptor) - MATLAB File Help |
Requires line detection
keylines = obj.detect(img)
keylines = obj.detect(imgs)
[...] = obj.detect(..., 'OptionName',optionValue, ...)
keylines{i} is a set of keylines detected in
imgs{i}. Each keyline is described with a KeyLine
structure with the following fields:
[x,y].[x,y].[x,y].[x,y].[x,y].KeyLines of
interest. It must be a logical or 8-bit integer matrix with
non-zero values in the region of interest. In the second
variant, it is a cell-array of masks for each input image,
masks{i} is a mask for imgs{i}. Not set by default.KeyLine is a struct to represent a line.
As aformentioned, it is been necessary to design a class that fully stores the information needed to characterize completely a line and plot it on image it was extracted from, when required.
KeyLine class has been created for such goal; it is mainly
inspired to Feature2d's KeyPoint class, since KeyLine shares
some of KeyPoint's fields, even if a part of them assumes a
different meaning, when speaking about lines. In particular:
class_id field is used to gather lines extracted from
different octaves which refer to same line inside original
image (such lines and the one they represent in original image
share the same class_id value)angle field represents line's slope with respect to
(positive) X axispt field represents line's midpointresponse field is computed as the ratio between the
line's length and maximum between image's width and heightsize field is the area of the smallest rectangle
containing lineApart from fields inspired to KeyPoint class, KeyLines
stores information about extremes of line in original image and
in octave it was extracted from, about line's length and number
of pixels it covers.
| Access | public |
| Sealed | false |
| Static | false |