🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.ximgproc
クラス EdgeDrawing
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.ximgproc.EdgeDrawing
public class EdgeDrawing extends Algorithm
ED (EdgeDrawing) CITE: topal2012edge、EDLines CITE: akinlar2011edlines、EDPF CITE: akinlar2012edpf、EDCircles CITE: akinlar2013edcircles、ColorED CITE: akinlar201782 の各アルゴリズムを実装したクラス。
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedEdgeDrawing​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static EdgeDrawing__fromPtr__​(long addr)voiddetectEdges​(Mat src)Detects edges in a grayscale or color image and prepares them to detect lines and ellipses.voiddetectEllipses​(Mat ellipses)Detects circles and ellipses.voiddetectLines​(Mat lines)Detects lines.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.-
クラス org.opencv.core.Algorithm から継承されたメソッド
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
フィールドの詳細
-
PREWITT
public static final int PREWITT
- 関連項目:
- Constant Field Values
-
SOBEL
public static final int SOBEL
- 関連項目:
- Constant Field Values
-
SCHARR
public static final int SCHARR
- 関連項目:
- Constant Field Values
-
LSD
public static final int LSD
- 関連項目:
- Constant Field Values
-
-
メソッドの詳細
-
__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- アルゴリズムの引数(パラメータ)
-
-