Package org.opencv.ximgproc
Class EdgeDrawing
java.lang.Object
org.opencv.core.Algorithm
org.opencv.ximgproc.EdgeDrawing
Class implementing the ED (EdgeDrawing) CITE: topal2012edge, EDLines CITE: akinlar2011edlines, EDPF CITE: akinlar2012edpf and EDCircles CITE: akinlar2013edcircles algorithms
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EdgeDrawing
__fromPtr__
(long addr) void
detectEdges
(Mat src) Detects edges in a grayscale image 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) returns Edge Image prepared by detectEdges() function.void
getGradientImage
(Mat dst) returns Gradient Image prepared by detectEdges() function.Returns for each line found in detectLines() its edge segment index in getSegments()Returns std::vector<std::vector<Point>> of detected edge segments, see detectEdges()void
setParams
(EdgeDrawing_Params parameters) sets parameters.Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Field Details
-
PREWITT
public static final int PREWITT- See Also:
-
SOBEL
public static final int SOBEL- See Also:
-
SCHARR
public static final int SCHARR- See Also:
-
LSD
public static final int LSD- See Also:
-
-
Constructor Details
-
EdgeDrawing
protected EdgeDrawing(long addr)
-
-
Method Details
-
__fromPtr__
-
detectEdges
Detects edges in a grayscale image and prepares them to detect lines and ellipses.- Parameters:
src
- 8-bit, single-channel, grayscale input image.
-
getEdgeImage
returns Edge Image prepared by detectEdges() function.- Parameters:
dst
- returns 8-bit, single-channel output image.
-
getGradientImage
returns Gradient Image prepared by detectEdges() function.- Parameters:
dst
- returns 16-bit, single-channel output image.
-
getSegments
Returns std::vector<std::vector<Point>> of detected edge segments, see detectEdges()- Returns:
- automatically generated
-
getSegmentIndicesOfLines
Returns for each line found in detectLines() its edge segment index in getSegments()- Returns:
- automatically generated
-
detectLines
Detects lines.- Parameters:
lines
- output Vec<4f> contains the start point and the end point of detected lines. Note: you should call detectEdges() before calling this function.
-
detectEllipses
Detects circles and ellipses.- Parameters:
ellipses
- output Vec<6d> contains center point and perimeter for circles, center point, axes and angle for ellipses. Note: you should call detectEdges() before calling this function.
-
setParams
sets parameters. this function is meant to be used for parameter setting in other languages than c++ like python.- Parameters:
parameters
- Parameters of the algorithm
-
finalize
-