@Namespace(value="cv::cuda") @Properties(inherit=opencv_cudaimgproc.class) public class HoughLinesDetector extends Algorithm
/** \brief Base class for lines detector algorithm. :
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
HoughLinesDetector(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 lines in a binary image using the classical Hough transform.
|
void |
detect(UMat src,
UMat lines) |
void |
detect(UMat src,
UMat lines,
Stream stream) |
void |
downloadResults(GpuMat d_lines,
GpuMat h_lines) |
void |
downloadResults(GpuMat d_lines,
GpuMat h_lines,
GpuMat h_votes,
Stream stream) |
void |
downloadResults(Mat d_lines,
Mat h_lines) |
void |
downloadResults(Mat d_lines,
Mat h_lines,
Mat h_votes,
Stream stream)
\brief Downloads results from cuda::HoughLinesDetector::detect to host memory.
|
void |
downloadResults(UMat d_lines,
UMat h_lines) |
void |
downloadResults(UMat d_lines,
UMat h_lines,
UMat h_votes,
Stream stream) |
boolean |
getDoSort() |
int |
getMaxLines() |
float |
getRho() |
float |
getTheta() |
int |
getThreshold() |
void |
setDoSort(boolean doSort) |
void |
setMaxLines(int maxLines) |
void |
setRho(float rho) |
void |
setTheta(float theta) |
void |
setThreshold(int threshold) |
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 HoughLinesDetector(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 two-element vector
(\rho, \theta)
. \rho
is the distance from the coordinate origin (0,0)
(top-left corner of
the image). \theta
is the line rotation angle in radians (
0 \sim \textrm{vertical line}, \pi/2 \sim \textrm{horizontal line}
).stream
- Stream for the asynchronous version.
HoughLines
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 downloadResults(@ByVal Mat d_lines, @ByVal Mat h_lines, @ByVal(nullValue="cv::OutputArray(cv::noArray())") Mat h_votes, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
d_lines
- Result of cuda::HoughLinesDetector::detect .h_lines
- Output host array.h_votes
- Optional output array for line's votes.stream
- Stream for the asynchronous version.public void downloadResults(@ByVal UMat d_lines, @ByVal UMat h_lines, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat h_votes, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
public void downloadResults(@ByVal GpuMat d_lines, @ByVal GpuMat h_lines, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat h_votes, @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 setThreshold(int threshold)
public int getThreshold()
public void setMaxLines(int maxLines)
public int getMaxLines()
Copyright © 2020. All rights reserved.