🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

クラス EdgeDrawing


  • public class EdgeDrawing extends Algorithm
    ED (EdgeDrawing) CITE: topal2012edge、EDLines CITE: akinlar2011edlines、EDPF CITE: akinlar2012edpf、EDCircles CITE: akinlar2013edcircles、ColorED CITE: akinlar201782 の各アルゴリズムを実装したクラス。
    • コンストラクタの詳細

      • EdgeDrawing

        protected EdgeDrawing​(long addr)
    • メソッドの詳細

      • __fromPtr__

        public static EdgeDrawing __fromPtr__​(long addr)
      • detectEdges

        public void detectEdges​(Mat src)
        Detects edges in a grayscale or color image and prepares them to detect lines and ellipses.
        引数:
        src - 8ビットのシングルチャンネル (CV_8UC1) もしくはカラー (CV_8UC3, CV_8UC4) の入力画像。
      • getEdgeImage

        public void getEdgeImage​(Mat dst)
        returns Edge Image prepared by detectEdges() function.
        引数:
        dst - 8ビットのシングルチャンネル出力画像を返す。
      • getGradientImage

        public void getGradientImage​(Mat dst)
        returns Gradient Image prepared by detectEdges() function.
        引数:
        dst - 16ビットのシングルチャンネル出力画像を返す。
      • getSegments

        public java.util.List<MatOfPoint> getSegments()
        Returns std::vector<std::vector<Point>> of detected edge segments, see detectEdges()
        戻り値:
        自動生成
      • getSegmentIndicesOfLines

        public MatOfInt getSegmentIndicesOfLines()
        Returns for each line found in detectLines() its edge segment index in getSegments()
        戻り値:
        自動生成
      • detectLines

        public void detectLines​(Mat lines)
        Detects lines.
        引数:
        lines - 検出された直線の始点と終点を含む出力 Vec<4f>。覚え書き: この関数を呼び出す前に detectEdges() を呼び出す必要がある。
      • detectEllipses

        public void detectEllipses​(Mat ellipses)
        Detects circles and ellipses.
        引数:
        ellipses - 出力 Vec<6d>。円の場合は中心点と周囲長を、楕円の場合は中心点・軸・角度を含む。覚え書き: この関数を呼び出す前に detectEdges() を呼び出す必要がある。
      • setParams

        public 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 - アルゴリズムの引数(パラメータ)