Class 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 Detail

      • EdgeDrawing

        protected EdgeDrawing​(long addr)
    • Method Detail

      • __fromPtr__

        public static EdgeDrawing __fromPtr__​(long addr)
      • detectEdges

        public void detectEdges​(Mat src)
        Detects edges and prepares them to detect lines and ellipses.
        Parameters:
        src - input image
      • getEdgeImage

        public void getEdgeImage​(Mat dst)
      • getGradientImage

        public void getGradientImage​(Mat dst)
      • getSegments

        public java.util.List<MatOfPoint> getSegments()
        Returns std::vector<std::vector<Point>> of detected edge segments, see detectEdges()
        Returns:
        automatically generated
      • getSegmentIndicesOfLines

        public MatOfInt getSegmentIndicesOfLines()
        Returns for each line found in detectLines() its edge segment index in getSegments()
        Returns:
        automatically generated
      • detectLines

        public void detectLines​(Mat lines)
        Detects lines.
        Parameters:
        lines - output Vec<4f> contains start point and end point of detected lines. Note: you should call detectEdges() method before call this.
      • detectEllipses

        public void detectEllipses​(Mat ellipses)
        Detects circles and ellipses.
        Parameters:
        ellipses - output Vec<6d> contains center point and perimeter for circles. Note: you should call detectEdges() method before call this.
      • setParams

        public void setParams​(EdgeDrawing_Params parameters)
        sets parameters. this function is meant to be used for parameter setting in other languages than c++.
        Parameters:
        parameters - automatically generated
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class Algorithm
        Throws:
        java.lang.Throwable