Package org.opencv.ximgproc
Class EdgeDrawing
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.ximgproc.EdgeDrawing
 
 
- 
 public class EdgeDrawing extends Algorithm Class implementing the ED (EdgeDrawing) CITE: topal2012edge, EDLines CITE: akinlar2011edlines, EDPF CITE: akinlar2012edpf and EDCircles CITE: akinlar2013edcircles algorithms
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedEdgeDrawing(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EdgeDrawing__fromPtr__(long addr)voiddetectEdges(Mat src)Detects edges in a grayscale image and prepares them to detect lines and ellipses.voiddetectEllipses(Mat ellipses)Detects circles and ellipses.voiddetectLines(Mat lines)Detects lines.protected voidfinalize()voidgetEdgeImage(Mat dst)returns Edge Image prepared by detectEdges() function.voidgetGradientImage(Mat dst)returns Gradient Image prepared by detectEdges() function.MatOfIntgetSegmentIndicesOfLines()Returns for each line found in detectLines() its edge segment index in getSegments()java.util.List<MatOfPoint>getSegments()Returns std::vector<std::vector<Point>> of detected edge segments, see detectEdges()voidsetParams(EdgeDrawing_Params parameters)sets parameters.- 
Methods inherited from class org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Field Detail- 
PREWITTpublic static final int PREWITT - See Also:
- Constant Field Values
 
 - 
SOBELpublic static final int SOBEL - See Also:
- Constant Field Values
 
 - 
SCHARRpublic static final int SCHARR - See Also:
- Constant Field Values
 
 - 
LSDpublic static final int LSD - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
__fromPtr__public static EdgeDrawing __fromPtr__(long addr) 
 - 
detectEdgespublic void detectEdges(Mat src) Detects edges in a grayscale image and prepares them to detect lines and ellipses.- Parameters:
- src- 8-bit, single-channel, grayscale input image.
 
 - 
getEdgeImagepublic void getEdgeImage(Mat dst) returns Edge Image prepared by detectEdges() function.- Parameters:
- dst- returns 8-bit, single-channel output image.
 
 - 
getGradientImagepublic void getGradientImage(Mat dst) returns Gradient Image prepared by detectEdges() function.- Parameters:
- dst- returns 16-bit, single-channel output image.
 
 - 
getSegmentspublic java.util.List<MatOfPoint> getSegments() Returns std::vector<std::vector<Point>> of detected edge segments, see detectEdges()- Returns:
- automatically generated
 
 - 
getSegmentIndicesOfLinespublic MatOfInt getSegmentIndicesOfLines() Returns for each line found in detectLines() its edge segment index in getSegments()- Returns:
- automatically generated
 
 - 
detectLinespublic void detectLines(Mat lines) 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.
 
 - 
detectEllipsespublic void detectEllipses(Mat ellipses) 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.
 
 - 
setParamspublic void setParams(EdgeDrawing_Params parameters) 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
 
 
- 
 
-