Package org.opencv.ximgproc
Class FastLineDetector
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.ximgproc.FastLineDetector
 
 
- 
 public class FastLineDetector extends Algorithm Class implementing the FLD (Fast Line Detector) algorithm described in CITE: Lee14 .
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedFastLineDetector(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FastLineDetector__fromPtr__(long addr)voiddetect(Mat _image, Mat _lines)Finds lines in the input image.voiddrawSegments(Mat _image, Mat lines)Draws the line segments on a given image.voiddrawSegments(Mat _image, Mat lines, boolean draw_arrow)Draws the line segments on a given image.protected voidfinalize()- 
Methods inherited from class org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static FastLineDetector __fromPtr__(long addr) 
 - 
detectpublic void detect(Mat _image, Mat _lines) Finds lines in the input image. This is the output of the default parameters of the algorithm on the above shown image. - Parameters:
- _image- 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- 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.
 
 - 
drawSegmentspublic void drawSegments(Mat _image, Mat lines, boolean draw_arrow) Draws the line segments on a given image.- Parameters:
- _image- The image, where the lines will be drawn. Should be bigger or equal to the image, where the lines were found.
- lines- A vector of the lines that needed to be drawn.
- draw_arrow- If true, arrow heads will be drawn.
 
 - 
drawSegmentspublic void drawSegments(Mat _image, Mat lines) Draws the line segments on a given image.- Parameters:
- _image- The image, where the lines will be drawn. Should be bigger or equal to the image, where the lines were found.
- lines- A vector of the lines that needed to be drawn.
 
 
- 
 
-