@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(Algorithm pointer)
Downcast constructor.
|
FastLineDetector(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Algorithm |
asAlgorithm() |
static Algorithm |
asAlgorithm(FastLineDetector pointer) |
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,
Scalar linecolor,
int linethickness) |
void |
drawSegments(Mat image,
Mat lines) |
void |
drawSegments(Mat image,
Mat lines,
boolean draw_arrow,
Scalar linecolor,
int linethickness)
\brief Draws the line segments on a given image.
|
void |
drawSegments(UMat image,
UMat lines) |
void |
drawSegments(UMat image,
UMat lines,
boolean draw_arrow,
Scalar linecolor,
int linethickness) |
clear, empty, getDefaultName, getPointer, position, read, save, save, write, write, write
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public FastLineDetector(Pointer p)
Pointer(Pointer)
.public FastLineDetector(Algorithm pointer)
public Algorithm asAlgorithm()
asAlgorithm
in class Algorithm
@Namespace @Name(value="static_cast<cv::Algorithm*>") public static Algorithm asAlgorithm(FastLineDetector pointer)
public void detect(@ByVal Mat image, @ByVal Mat lines)
![image](pics/corridor_fld.jpg)
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, @ByVal(nullValue="cv::Scalar(0, 0, 255)") Scalar linecolor, int linethickness)
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.linecolor
- Line color.linethickness
- Line thickness.public void drawSegments(@ByVal UMat image, @ByVal UMat lines, @Cast(value="bool") boolean draw_arrow, @ByVal(nullValue="cv::Scalar(0, 0, 255)") Scalar linecolor, int linethickness)
public void drawSegments(@ByVal GpuMat image, @ByVal GpuMat lines, @Cast(value="bool") boolean draw_arrow, @ByVal(nullValue="cv::Scalar(0, 0, 255)") Scalar linecolor, int linethickness)
Copyright © 2024. All rights reserved.