画像情報取得(チャネル数)

Namespace: fvalgcli
Assembly: fvalgcli_fga (in fvalgcli_fga.dll) Version: 3.1.0.0 (3.1.0.3)

Syntax

C#
public static int fnFGA_img_get_channels(
	FHANDLE himg
)
Visual Basic
Public Shared Function fnFGA_img_get_channels ( 
	himg As FHANDLE
) As Integer

Parameters

himg
Type: fvalgcli..::..FHANDLE
情報を取得する画像のハンドル

Return Value

Type: Int32
正常終了した場合は、画像のチャネル数を返します。 異常終了した場合は、-1を返します。

Examples

C# Copy imageCopy
//    $Revision: 1.2 $

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using fvalgcli;

namespace TC
{
    public partial class FIE
    {
        /// <summary>
        /// 画像情報取得(チャネル数).
        /// </summary>
        [FvPluginExecute]
        public void fnFGA_img_get_channels()
        {
            // fnFGA_img_child_alloc 参照.
        }
    }
}

Exceptions

ExceptionCondition
System.IO..::..FileNotFoundException 実行環境に NVIDIA CUDA Runtime が存在しない場合、FGA ライブラリのロードが失敗し、この例外が発行されます。
必要な環境については FGA ライブラリ説明書 をご参照ください。
例外メッセージの例 (32bit 日本語 O/S の場合):
DLL 'fgamt.x86.3.0.0.dll' を読み込めません: 指定されたモジュールが見つかりません。 (HRESULT からの例外: 0x8007007E)

See Also