カメラキャリブレーションデータオブジェクトの作成
Namespace: fvalgcliAssembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)
Syntax
C# |
---|
public static FHANDLE fnFIE_calib_open(
DPNT_T_PTR model,
int num_model,
ref int status
) |
Visual Basic |
---|
Public Shared Function fnFIE_calib_open (
model As DPNT_T_PTR,
num_model As Integer,
ByRef status As Integer
) As FHANDLE |
Parameters
- model
- Type: fvalgcli..::..DPNT_T_PTR
基準モデル座標列
- num_model
- Type: System..::..Int32
model 配列が含む座標の個数 (4以上)
- status
- Type: System..::..Int32%
エラーコードを格納する変数のポインタ。
必要のない場合は IntPtr.Zero を入れてください。
- F_ERR_NONE 正常終了
- F_ERR_NOMEMORY メモリ不足
- F_ERR_INVALID_PARAM 引数異常(model が IntPtr.Zero またはnum_model < 4)
- F_ERR_NO_LICENCE ライセンスエラー
Return Value
Type:
FHANDLE正常終了した場合は、内部で確保したカメラキャリブレーションデータオブジェクトのハンドルを返します。 異常終了により生成できなかったときは IntPtr.Zero を返します。
Remarks
Examples
C# | Copy |
---|
using System;
using System.Collections.Generic;
using System.Text;
using fvalgcli;
namespace TC
{
public partial class FIE
{
[FvPluginExecute]
public void fnFIE_calib_open()
{
int status = (int)f_err.F_ERR_NONE;
FHANDLE hcalib = FHANDLE.Zero;
DPNT_T_PTR model = DPNT_T_PTR.Zero;
int num_model = 4;
try
{
model = DPNT_T_PTR.alloc(num_model);
model[0] = DPNT_T.init(0, 0);
model[1] = DPNT_T.init(10, 0);
model[2] = DPNT_T.init(0, 10);
model[3] = DPNT_T.init(10, 10);
api.fnFIE_calib_open(model, num_model, ref status);
Assert.IsTrue(status == (int)f_err.F_ERR_NONE, "エラーが発生しました。({0})", (f_err)status);
}
finally
{
hcalib.Dispose();
model.Dispose();
}
}
}
} |
Visual Basic | Copy |
---|
Imports System.Collections.Generic
Imports System.Text
Imports fvalgcli
Public Partial Class FIE
<FvPluginExecute> _
Public Sub fnFIE_calib_open()
Dim status As Integer = CInt(f_err.F_ERR_NONE)
Dim hcalib As FHANDLE = FHANDLE.Zero
Dim model As DPNT_T_PTR = DPNT_T_PTR.Zero
Dim num_model As Integer = 4
Try
model = DPNT_T_PTR.alloc(num_model)
model(0) = DPNT_T.init(0, 0)
model(1) = DPNT_T.init(10, 0)
model(2) = DPNT_T.init(0, 10)
model(3) = DPNT_T.init(10, 10)
api.fnFIE_calib_open(model, num_model, status)
Assert.IsTrue(status = CInt(f_err.F_ERR_NONE), "エラーが発生しました。({0})", CType(status, f_err))
Finally
hcalib.Dispose()
model.Dispose()
End Try
End Sub
End Class |
See Also