public class EdgeDrawing extends Algorithm
| Modifier and Type | Field and Description |
|---|---|
static int |
LSD |
static int |
PREWITT |
static int |
SCHARR |
static int |
SOBEL |
| Modifier | Constructor and Description |
|---|---|
protected |
EdgeDrawing(long addr) |
| Modifier and Type | Method and Description |
|---|---|
static EdgeDrawing |
__fromPtr__(long addr) |
void |
detectEdges(Mat src)
Detects edges and prepares them to detect lines and ellipses.
|
void |
detectEllipses(Mat ellipses)
Detects circles and ellipses.
|
void |
detectLines(Mat lines)
Detects lines.
|
protected void |
finalize() |
void |
getEdgeImage(Mat dst) |
void |
getGradientImage(Mat dst) |
MatOfInt |
getSegmentIndicesOfLines()
Returns for each line found in detectLines() its edge segment index in getSegments()
|
List<MatOfPoint> |
getSegments()
Returns std::vector<std::vector<Point>> of detected edge segments, see detectEdges()
|
void |
setParams(EdgeDrawing_Params parameters)
sets parameters.
|
clear, empty, getDefaultName, getNativeObjAddr, savepublic static final int PREWITT
public static final int SOBEL
public static final int SCHARR
public static final int LSD
public static EdgeDrawing __fromPtr__(long addr)
public void detectEdges(Mat src)
src - input imagepublic void getEdgeImage(Mat dst)
public void getGradientImage(Mat dst)
public List<MatOfPoint> getSegments()
public MatOfInt getSegmentIndicesOfLines()
public void detectLines(Mat lines)
lines - output Vec<4f> contains start point and end point of detected lines.
Note: you should call detectEdges() method before call this.public void detectEllipses(Mat ellipses)
ellipses - output Vec<6d> contains center point and perimeter for circles.
Note: you should call detectEdges() method before call this.public void setParams(EdgeDrawing_Params parameters)
parameters - automatically generatedCopyright © 2022. All rights reserved.