🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.ximgproc
クラス FastLineDetector
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.ximgproc.FastLineDetector
public class FastLineDetector extends Algorithm
CITE: Lee14 に記載されている FLD (Fast Line Detector) アルゴリズムを実装したクラス。
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedFastLineDetector​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static FastLineDetector__fromPtr__​(long addr)voiddetect​(Mat image, Mat lines)Finds lines in the input image.voiddrawSegments​(Mat image, Mat lines)Draws the line segments on a given image.voiddrawSegments​(Mat image, Mat lines, boolean draw_arrow)Draws the line segments on a given image.voiddrawSegments​(Mat image, Mat lines, boolean draw_arrow, Scalar linecolor)Draws the line segments on a given image.voiddrawSegments​(Mat image, Mat lines, boolean draw_arrow, Scalar linecolor, int linethickness)Draws the line segments on a given image.-
クラス org.opencv.core.Algorithm から継承されたメソッド
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
メソッドの詳細
-
__fromPtr__
public static FastLineDetector __fromPtr__​(long addr)
-
detect
public void detect​(Mat image, Mat lines)
Finds lines in the input image. This is the output of the default parameters of the algorithm on the above shown image. - 引数:
image- グレースケール (CV_8UC1) の入力画像。ROIのみを選択する必要がある場合は次のように使用する: `fld_ptr->detect(image(roi), lines, ...); lines += Scalar(roi.x, roi.y, roi.x, roi.y);`lines- 直線の始点と終点を指定する Vec4f 要素のベクトル。Vec4f は (x1, y1, x2, y2) で、点1が始点、点2が終点である。返される直線は、より明るい側が左になるように向き付けられている。
-
drawSegments
public void drawSegments​(Mat image, Mat lines, boolean draw_arrow, Scalar linecolor, int linethickness)
Draws the line segments on a given image.- 引数:
image- 線が描画される画像。線が見つかった画像以上の大きさである必要がある。lines- 描画する必要のある線のベクトル。draw_arrow- true の場合、矢印の先端が描画される。linecolor- 線の色。linethickness- 線の太さ。
-
drawSegments
public void drawSegments​(Mat image, Mat lines, boolean draw_arrow, Scalar linecolor)
Draws the line segments on a given image.- 引数:
image- 線が描画される画像。線が見つかった画像以上の大きさである必要がある。lines- 描画する必要のある線のベクトル。draw_arrow- true の場合、矢印の先端が描画される。linecolor- 線の色。
-
drawSegments
public void drawSegments​(Mat image, Mat lines, boolean draw_arrow)
Draws the line segments on a given image.- 引数:
image- 線が描画される画像。線が見つかった画像以上の大きさである必要がある。lines- 描画する必要のある線のベクトル。draw_arrow- true の場合、矢印の先端が描画される。
-
-