| FastLineDetectorDetect Method (InputArray, OutputArray) |
Finds lines in the input image.
This is the output of the default parameters of the algorithm on the above shown image.
Namespace:
OpenCvSharp.XImgProc
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public virtual void Detect(
InputArray image,
OutputArray lines
)
Public Overridable Sub Detect (
image As InputArray,
lines As OutputArray
)
public:
virtual void Detect(
InputArray^ image,
OutputArray^ lines
)
abstract Detect :
image : InputArray *
lines : OutputArray -> unit
override Detect :
image : InputArray *
lines : OutputArray -> unit
Parameters
- image
- Type: OpenCvSharpInputArray
A grayscale (CV_8UC1) input image. If only a roi needs to be
selected, use: `fld_ptr-\>detect(image(roi), lines, ...);
lines += Scalar(roi.x, roi.y, roi.x, roi.y);` - lines
- Type: OpenCvSharpOutputArray
A vector of Vec4f elements specifying the beginning
and ending point of a line. Where Vec4f is (x1, y1, x2, y2),
point 1 is the start, point 2 - end.Returned lines are directed so that the
brighter side is on their left.
See Also