直線検出ハフライブラリのオープン

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

Syntax

C#
public static FHANDLE fnFIE_hough_lines_open(
	int stq,
	int edq,
	int sx,
	int sy,
	int ex,
	int ey,
	ref int exerr
)
Visual Basic
Public Shared Function fnFIE_hough_lines_open ( 
	stq As Integer,
	edq As Integer,
	sx As Integer,
	sy As Integer,
	ex As Integer,
	ey As Integer,
	ByRef exerr As Integer
) As FHANDLE

Parameters

stq
Type: System..::..Int32
検出する直線の法線方向の角度の範囲の始値(-360〜360, 単位:度)
edq
Type: System..::..Int32
検出する直線の法線方向の角度の範囲の終値(0〜360, 単位:度)
sx
Type: System..::..Int32
投票するエッジが存在する領域の左上X座標
sy
Type: System..::..Int32
投票するエッジが存在する領域の左上Y座標
ex
Type: System..::..Int32
投票するエッジが存在する領域の右下X座標
ey
Type: System..::..Int32
投票するエッジが存在する領域の右下Y座標
exerr
Type: System..::..Int32%
エラーコード。エラーコードを受け取る必要の無い場合は、IntPtr.Zero を指定します。

Return Value

Type: FHANDLE
正常にオープンできた場合は、直線ハフ構造体のハンドルを返します。 パラメータエラーもしくはメモリ不足の場合は、IntPtr.Zero を返します。
f_err内容
*exerr==F_ERR_NONE 正常終了
*exerr==F_ERR_NOMEMORY メモリ不足エラー
*exerr==F_ERR_INVALID_PARAM パラメータエラー
*exerr==F_ERR_UNINIT_LIB 未初期化( fnFIE_setup() を実行していない )
*exerr==F_ERR_UNINIT_LIB 未初期化( fnFIE_setup() を実行していない )
*exerr==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 FHANDLE fnFIE_hough_lines_open(int stq, int edq, int sx, int sy, int ex, int ey, ref int exerr)
        {
            FHANDLE hHough = FHANDLE.Zero;

            try
            {
                hHough = api.fnFIE_hough_lines_open(stq, edq, sx, sy, ex, ey, ref exerr);
                Assert.IsTrue(exerr == (int)f_err.F_ERR_NONE, "fnFIE_hough_lines_open: エラーが発生しました。({0})", (f_err)exerr);
                Console.WriteLine("fnFIE_hough_lines_open");
            }
            finally
            {
            }

            return hHough;
        }
    }
}


Visual Basic Copy imageCopy
'    $Revision: 1.1 $

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

Public Partial Class FIE
    Public Function fnFIE_hough_lines_open(stq As Integer, edq As Integer, sx As Integer, sy As Integer, ex As Integer, ey As Integer, _
        ByRef exerr As Integer) As FHANDLE
        Dim hHough As FHANDLE = FHANDLE.Zero

        Try
            hHough = api.fnFIE_hough_lines_open(stq, edq, sx, sy, ex, ey, _
                exerr)
            Assert.IsTrue(exerr = CInt(f_err.F_ERR_NONE), "fnFIE_hough_lines_open: エラーが発生しました。({0})", CType(exerr, f_err))
            Console.WriteLine("fnFIE_hough_lines_open")
        Finally
        End Try

        Return hHough
    End Function
End Class

See Also