フェレ径の取得

Namespace: fvalgcli
Assembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)

Syntax

C#
public static int fnFIE_measure_get_feret_diameter(
	FHANDLE hresult,
	uint blobno,
	double theta,
	int mode,
	ref double diameter
)
Visual Basic
Public Shared Function fnFIE_measure_get_feret_diameter ( 
	hresult As FHANDLE,
	blobno As UInteger,
	theta As Double,
	mode As Integer,
	ByRef diameter As Double
) As Integer

Parameters

hresult
Type: fvalgcli..::..FHANDLE
ブローブ解析結果ハンドル
blobno
Type: System..::..UInt32
対象ブローブのブローブ番号
theta
Type: System..::..Double
計測角度(ラジアン)
mode
Type: System..::..Int32
画素領域モード
  • 0 : 点で計測
  • 1 : 矩形の広がりを持つ点で計測
diameter
Type: System..::..Double%
フェレ径

Return Value

Type: Int32
以下のエラーコードを返します。

エラーコード:
f_err内容
F_ERR_NONE正常終了
F_ERR_INVALID_OBJECThresult に指定されたオブジェクトハンドルが不正
F_ERR_INVALID_PARAMblobno に指定されたブローブ番号が不正またはパラメータに IntPtr.Zero が渡された
F_ERR_NO_LICENCEライセンスエラー、または未初期化エラー

Remarks

Examples

C# Copy imageCopy
//    $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(FHANDLE result, uint blobno)
        {
            try
            {
                double theta = 1;
                int mode = 1;
                double diameter = 0;
                int status = api.fnFIE_measure_get_feret_diameter(result, blobno, theta, mode, ref diameter);
                Assert.IsTrue(status == (int)f_err.F_ERR_NONE, "fnFIE_measure_get_feret_diameter: エラーが発生しました。({0})", (f_err)status);
                Console.WriteLine("fnFIE_measure_get_feret_diameter");
                // 出力.
                Console.WriteLine("diameter={0}", diameter);
            }
            finally
            {
            }
        }
    }
}


Visual Basic Copy imageCopy
'    $Revision: 1.1 $

Imports System.Collections.Generic
Imports System.Text
Imports fvalgcli

Public Partial Class FIE
    Public Sub fnFIE_measure_get_feret_diameter(result As FHANDLE, blobno As UInteger)
        Try
            Dim theta As Double = 1
            Dim mode As Integer = 1
            Dim diameter As Double = 0
            Dim status As Integer = api.fnFIE_measure_get_feret_diameter(result, blobno, theta, mode, diameter)
            Assert.IsTrue(status = CInt(f_err.F_ERR_NONE), "fnFIE_measure_get_feret_diameter: エラーが発生しました。({0})", CType(status, f_err))
            Console.WriteLine("fnFIE_measure_get_feret_diameter")
            ' 出力.
            Console.WriteLine("diameter={0}", diameter)
        Finally
        End Try
    End Sub
End Class

See Also