FFTハンドルの有効性チェック

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

Syntax

C#
public static int fnFIE_fft_get_spec(
	FHANDLE hFFT,
	ref int ipSpecType,
	ref int ipWidth,
	ref int ipHeight,
	ref int ipNormalization
)
Visual Basic
Public Shared Function fnFIE_fft_get_spec ( 
	hFFT As FHANDLE,
	ByRef ipSpecType As Integer,
	ByRef ipWidth As Integer,
	ByRef ipHeight As Integer,
	ByRef ipNormalization As Integer
) As Integer

Parameters

hFFT
Type: fvalgcli..::..FHANDLE
既存FFTハンドル
ipSpecType
Type: System..::..Int32%
FFTハンドルの種類
ipWidth
Type: System..::..Int32%
1次元FFTの場合はデータ長を返します。2次元FFTの場合は画像幅を返します。
ipHeight
Type: System..::..Int32%
1次元FFTの場合は0を返します。2次元FFTの場合は画像高さを返します。
ipNormalization
Type: System..::..Int32%
正規化手法。 f_fft_normalize_type を参照して下さい。

Return Value

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

エラーコード:
f_err内容
F_ERR_NONE正常終了
F_ERR_INVALID_OBJECT hFFT が IntPtr.Zero
F_ERR_INVALID_PARAMパラメータ不正
  • hFFT の型が F_OBJID_FFTSPEC ではない
  • hFFT の型が F_OBJID_FFTSPEC ではない
F_ERR_NO_LICENCEライセンスエラー、または未初期化エラー

Examples

C# Copy imageCopy
//    $Revision: 1.1 $

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

namespace TC
{
    public partial class FIE
    {
        /// <summary>
        /// FFTハンドルが保持しているパラメータの取得.
        /// </summary>
        [FvPluginExecute]
        public void fnFIE_fft_get_spec()
        {
            // fnFIE_fft_1D_alloc, またはfnFIE_fft_2D_alloc 参照.
        }
    }
}


Visual Basic Copy imageCopy
'    $Revision: 1.1 $

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

Public Partial Class FIE
    ''' <summary>
    ''' FFTハンドルが保持しているパラメータの取得.
    ''' </summary>
    <FvPluginExecute> _
    Public Sub fnFIE_fft_get_spec()
        ' fnFIE_fft_1D_alloc, またはfnFIE_fft_2D_alloc 参照.
    End Sub
End Class

See Also