LineSegmentDetectorDetect Method (InputArray, Vec4f, Double, Double, Double)
|
Finds lines in the input image.
This is the output of the default parameters of the algorithm on the above shown image.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic virtual void Detect(
InputArray image,
out Vec4f[] lines,
out double[] width,
out double[] prec,
out double[] nfa
)
Public Overridable Sub Detect (
image As InputArray,
<OutAttribute> ByRef lines As Vec4f(),
<OutAttribute> ByRef width As Double(),
<OutAttribute> ByRef prec As Double(),
<OutAttribute> ByRef nfa As Double()
)
public:
virtual void Detect(
InputArray^ image,
[OutAttribute] array<Vec4f>^% lines,
[OutAttribute] array<double>^% width,
[OutAttribute] array<double>^% prec,
[OutAttribute] array<double>^% nfa
)
abstract Detect :
image : InputArray *
lines : Vec4f[] byref *
width : float[] byref *
prec : float[] byref *
nfa : float[] byref -> unit
override Detect :
image : InputArray *
lines : Vec4f[] byref *
width : float[] byref *
prec : float[] byref *
nfa : float[] byref -> unit
function Detect(image, lines, width, prec, nfa);
Parameters
- image
- Type: OpenCvSharpInputArray
A grayscale (CV_8UC1) input image. - lines
- Type: OpenCvSharpVec4f
A vector of Vec4i or Vec4f elements specifying the beginning and ending point of a line.
Where Vec4i/Vec4f is (x1, y1, x2, y2), point 1 is the start, point 2 - end. Returned lines are strictly oriented depending on the gradient. - width
- Type: SystemDouble
Vector of widths of the regions, where the lines are found. E.g. Width of line. - prec
- Type: SystemDouble
Vector of precisions with which the lines are found. - nfa
- Type: SystemDouble
Vector containing number of false alarms in the line region,
with precision of 10%. The bigger the value, logarithmically better the detection.
See Also