Method Detect
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Detect(InputArray, OutputArray, OutputArray, OutputArray, OutputArray)
Finds lines in the input image. This is the output of the default parameters of the algorithm on the above shown image.
public virtual void Detect(InputArray image, OutputArray lines, OutputArray width = default, OutputArray prec = default, OutputArray nfa = default)
Parameters
imageInputArrayA grayscale (CV_8UC1) input image.
linesOutputArrayA 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.
widthOutputArrayVector of widths of the regions, where the lines are found. E.g. Width of line.
precOutputArrayVector of precisions with which the lines are found.
nfaOutputArrayVector containing number of false alarms in the line region, with precision of 10%. The bigger the value, logarithmically better the detection.
Detect(InputArray, out Vec4f[], out double[], out double[], out double[])
Finds lines in the input image. This is the output of the default parameters of the algorithm on the above shown image.
public virtual void Detect(InputArray image, out Vec4f[] lines, out double[] width, out double[] prec, out double[] nfa)
Parameters
imageInputArrayA grayscale (CV_8UC1) input image.
linesVec4f[]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.
widthdouble[]Vector of widths of the regions, where the lines are found. E.g. Width of line.
precdouble[]Vector of precisions with which the lines are found.
nfadouble[]Vector containing number of false alarms in the line region, with precision of 10%. The bigger the value, logarithmically better the detection.