VGetEdgePixelXYU メソッド

解説
LineFinderおよびArcFinderサーチの各エッジに対するX, Y, Uのピクセル座標を取得します。

書式
Sub VGetEdgePixelXYU (Sequence As String, Object As String, EdgeResultIndex As Integer, ByRef Found As Boolean, ByRef X As Single, ByRef Y As Single, ByRef U As Single)

パラメーター

  • Sequence
    カレントプロジェクトのビジョンシーケンス名を示す文字列式
  • Object
    シーケンスのオブジェクト名を示す文字列式
  • EdgeResultIndex
    エッジリザルトのインデックスを示す整数式
  • Found
    オブジェクトが検索されたかどうかを表すBoolean型変数
  • X
    ミリメートル単位で表わされるx座標を示す実数変数
  • Y
    ミリメートル単位で表わされるy座標を示す実数変数
  • U
    度単位で表わされる角度を示す実数変数

参照
VGetEdgeCameraXYU メソッド, VGetEdgeRobotXYU メソッド, VGetPixelXYU メソッド, VGetRobotXYU メソッド

VGetEdgePixelXYU 使用例
VB 例:

Dim found(10) As Boolean  
Dim x(10) As Single, y(10) As Single, u(10) As Single  
Dim seq As String, lineFinder As String  
  
seq = "testSeq"  
lineFinder = "LineFind01"  
m_spel.VRun(seq)  
' LineFinderのNumberOfEdgesプロパティーは10  
For i = 1 To 10  
m_spel.VGetEdgePixelXYU(seq, lineFinder, i, found(i), x(i),  
   y(i), u(i))  
Next i  

C# 例:

bool[] found = new bool[11];  
float[] x = new float[11];  
float[] y = new float[11];  
float[] u = new float[11];  
string seq, lineFinder;  
seq = "testSeq";  
lineFinder = "LineFind01";  
m_spel.VRun(seq);  
// LineFinderのNumberOfEdgesプロパティーは10  
for(int i = 1; i <= 10; i++)  
m_spel.VGetEdgePixelXYU(seq, lineFinder, i, out found[i],  
      out x[i], out y[i], out u[i]);