@Namespace(value="cv::cuda") @Properties(inherit=opencv_cudaimgproc.class) public class HoughSegmentDetector extends Algorithm
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
HoughSegmentDetector(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
detect(GpuMat src,
GpuMat lines) |
void |
detect(GpuMat src,
GpuMat lines,
Stream stream) |
void |
detect(Mat src,
Mat lines) |
void |
detect(Mat src,
Mat lines,
Stream stream)
\brief Finds line segments in a binary image using the probabilistic Hough transform.
|
void |
detect(UMat src,
UMat lines) |
void |
detect(UMat src,
UMat lines,
Stream stream) |
int |
getMaxLineGap() |
int |
getMaxLines() |
int |
getMinLineLength() |
float |
getRho() |
float |
getTheta() |
void |
setMaxLineGap(int maxLineGap) |
void |
setMaxLines(int maxLines) |
void |
setMinLineLength(int minLineLength) |
void |
setRho(float rho) |
void |
setTheta(float theta) |
clear, empty, getDefaultName, position, read, save, save, write, write, write
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public HoughSegmentDetector(Pointer p)
Pointer.Pointer(Pointer)
.public void detect(@ByVal Mat src, @ByVal Mat lines, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
src
- 8-bit, single-channel binary source image.lines
- Output vector of lines. Each line is represented by a 4-element vector
(x_1, y_1, x_2, y_2)
, where (x_1,y_1)
and (x_2, y_2)
are the ending points of each detected
line segment.stream
- Stream for the asynchronous version.
HoughLinesP
public void detect(@ByVal UMat src, @ByVal UMat lines, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
public void detect(@ByVal GpuMat src, @ByVal GpuMat lines, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
public void setRho(float rho)
public float getRho()
public void setTheta(float theta)
public float getTheta()
public void setMinLineLength(int minLineLength)
public int getMinLineLength()
public void setMaxLineGap(int maxLineGap)
public int getMaxLineGap()
public void setMaxLines(int maxLines)
public int getMaxLines()
Copyright © 2020. All rights reserved.