@Namespace(value="cv::ximgproc") @Properties(inherit=opencv_ximgproc.class) public class FastLineDetector extends Algorithm
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
FastLineDetector(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
detect(GpuMat _image,
GpuMat _lines) |
void |
detect(Mat _image,
Mat _lines)
\brief Finds lines in the input image.
|
void |
detect(UMat _image,
UMat _lines) |
void |
drawSegments(GpuMat _image,
GpuMat lines) |
void |
drawSegments(GpuMat _image,
GpuMat lines,
boolean draw_arrow) |
void |
drawSegments(Mat _image,
Mat lines) |
void |
drawSegments(Mat _image,
Mat lines,
boolean draw_arrow)
\brief Draws the line segments on a given image.
|
void |
drawSegments(UMat _image,
UMat lines) |
void |
drawSegments(UMat _image,
UMat lines,
boolean draw_arrow) |
clear, empty, getDefaultName, getPointer, position, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic FastLineDetector(Pointer p)
Pointer(Pointer).public void detect(@ByVal Mat _image, @ByVal Mat _lines)

_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.public void drawSegments(@ByVal Mat _image, @ByVal Mat lines, @Cast(value="bool") boolean draw_arrow)
_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.public void drawSegments(@ByVal UMat _image, @ByVal UMat lines, @Cast(value="bool") boolean draw_arrow)
public void drawSegments(@ByVal GpuMat _image, @ByVal GpuMat lines, @Cast(value="bool") boolean draw_arrow)
Copyright © 2021. All rights reserved.