重心N次モーメントの取得
Namespace: fvalgcliAssembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)
Syntax
C# |
---|
public static int fnFIE_measure_get_central_moment(
FHANDLE hresult,
uint blobno,
int xn,
int yn,
ref double mg
) |
Visual Basic |
---|
Public Shared Function fnFIE_measure_get_central_moment (
hresult As FHANDLE,
blobno As UInteger,
xn As Integer,
yn As Integer,
ByRef mg As Double
) As Integer |
Parameters
- hresult
- Type: fvalgcli..::..FHANDLE
ブローブ解析結果ハンドル
- blobno
- Type: System..::..UInt32
対象ブローブのブローブ番号
- xn
- Type: System..::..Int32
xの次数( 0以上 )
- yn
- Type: System..::..Int32
yの次数( 0以上 )
- mg
- Type: System..::..Double%
MGpq
Return Value
Type:
Int32
以下のエラーコードを返します。
エラーコード:f_err | 内容 |
---|
F_ERR_NONE | 正常終了 |
F_ERR_INVALID_OBJECT | hresult に指定されたオブジェクトハンドルが不正 |
F_ERR_INVALID_PARAM | 以下のいずれかの理由によりパラメータエラー
- blobno に指定されたブローブ番号が不正
- パラメータに IntPtr.Zero が渡された
- xn または yn が0より小さい
|
F_ERR_NO_LICENCE | ライセンスエラー、または未初期化エラー |
Remarks
Examples
C# | Copy |
---|
using System;
using System.Collections.Generic;
using System.Text;
using fvalgcli;
namespace TC
{
public partial class FIE
{
public void fnFIE_measure_get_central_moment(FHANDLE result, uint blobno)
{
try
{
int xn = 1;
int yn = 1;
double mg = 0;
int status = api.fnFIE_measure_get_central_moment(result, blobno, xn, yn, ref mg);
Assert.IsTrue(status == (int)f_err.F_ERR_NONE, "fnFIE_measure_get_central_moment: エラーが発生しました。({0})", (f_err)status);
Console.WriteLine("fnFIE_measure_get_central_moment");
Console.WriteLine("mg={0}", mg);
}
finally
{
}
}
}
} |
Visual Basic | Copy |
---|
Imports System.Collections.Generic
Imports System.Text
Imports fvalgcli
Public Partial Class FIE
Public Sub fnFIE_measure_get_central_moment(result As FHANDLE, blobno As UInteger)
Try
Dim xn As Integer = 1
Dim yn As Integer = 1
Dim mg As Double = 0
Dim status As Integer = api.fnFIE_measure_get_central_moment(result, blobno, xn, yn, mg)
Assert.IsTrue(status = CInt(f_err.F_ERR_NONE), "fnFIE_measure_get_central_moment: エラーが発生しました。({0})", CType(status, f_err))
Console.WriteLine("fnFIE_measure_get_central_moment")
Console.WriteLine("mg={0}", mg)
Finally
End Try
End Sub
End Class |
See Also