最大フェレ径、最小フェレ径の取得
Namespace: fvalgcliAssembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)
Syntax
C# |
---|
public static int fnFIE_measure_get_feret_diameter_maxmin( FHANDLE hresult, uint blobno, ref double feretmax, ref double fmax_theta, ref double feretmin, ref double fmin_theta ) |
Visual Basic |
---|
Public Shared Function fnFIE_measure_get_feret_diameter_maxmin ( hresult As FHANDLE, blobno As UInteger, ByRef feretmax As Double, ByRef fmax_theta As Double, ByRef feretmin As Double, ByRef fmin_theta As Double ) As Integer |
Parameters
- hresult
- Type: fvalgcli..::..FHANDLE
ブローブ解析結果ハンドル
- blobno
- Type: System..::..UInt32
対象ブローブのブローブ番号
- feretmax
- Type: System..::..Double%
最大フェレ径
- fmax_theta
- Type: System..::..Double%
最大フェレ径の角度( -π/2 <= fmax_theta <= π/2 )
- feretmin
- Type: System..::..Double%
最小フェレ径
- fmin_theta
- Type: System..::..Double%
最小フェレ径の角度( -π/2 <= fmin_theta <= π/2 )
Return Value
Type: Int32以下のエラーコードを返します。
エラーコード:
f_err | 内容 |
---|---|
F_ERR_NONE | 正常終了 |
F_ERR_INVALID_OBJECT | hresult に指定されたオブジェクトハンドルが不正 |
F_ERR_INVALID_PARAM | blobno に指定されたブローブ番号が不正またはパラメータに IntPtr.Zero が渡された |
F_ERR_CALC_IMPOSSIBLE | 計算不能 |
F_ERR_NOMEMORY | メモリ不足 |
F_ERR_NO_LICENCE | ライセンスエラー、または未初期化エラー |
Remarks
Examples
C# | Copy |
---|---|
// $Revision: 1.1 $ using System; using System.Collections.Generic; using System.Text; using fvalgcli; namespace TC { public partial class FIE { public void fnFIE_measure_get_feret_diameter_maxmin(FHANDLE result, uint blobno) { try { double feretmax = 0; double fmax_theta = 0; double feretmin = 0; double fmin_theta = 0; int status = api.fnFIE_measure_get_feret_diameter_maxmin (result, blobno, ref feretmax, ref fmax_theta, ref feretmin, ref fmin_theta); Assert.IsTrue(status == (int)f_err.F_ERR_NONE, "fnFIE_measure_get_feret_diameter_maxmin: エラーが発生しました。({0})", (f_err)status); Console.WriteLine("fnFIE_measure_get_feret_diameter_maxmin"); // 出力. Console.WriteLine("feretmax={0},fmax_theta={1},feretmin={2},fmin_theta={3},", feretmax, fmax_theta, feretmin, fmin_theta); } finally { } } } } |
Visual Basic | Copy |
---|---|
' $Revision: 1.1 $ Imports System.Collections.Generic Imports System.Text Imports fvalgcli Public Partial Class FIE Public Sub fnFIE_measure_get_feret_diameter_maxmin(result As FHANDLE, blobno As UInteger) Try Dim feretmax As Double = 0 Dim fmax_theta As Double = 0 Dim feretmin As Double = 0 Dim fmin_theta As Double = 0 Dim status As Integer = api.fnFIE_measure_get_feret_diameter_maxmin(result, blobno, feretmax, fmax_theta, feretmin, fmin_theta) Assert.IsTrue(status = CInt(f_err.F_ERR_NONE), "fnFIE_measure_get_feret_diameter_maxmin: エラーが発生しました。({0})", CType(status, f_err)) Console.WriteLine("fnFIE_measure_get_feret_diameter_maxmin") ' 出力. Console.WriteLine("feretmax={0},fmax_theta={1},feretmin={2},fmin_theta={3},", feretmax, fmax_theta, feretmin, fmin_theta) Finally End Try End Sub End Class |