Ejemplo n.º 1
0
        /// <summary>
        /// 1次元あるいは2次元浮動小数点型配列に対して離散フーリエ変換(DFT),逆離散フーリエ変換(IDFT)を行う.
        /// </summary>
        /// <param name="src">入力配列(実数または複素数)</param>
        /// <param name="dst">入力配列と同じサイズ・タイプの出力配列</param>
        /// <param name="flags">変換フラグ</param>
        /// <param name="nonzeroRows">入力配列の非0である行の数(2次元順変換の場合),あるいは出力配列で注目する行の数(2次元逆変換の場合).</param>
#else
        /// <summary>
        /// Performs forward or inverse Discrete Fourier transform of 1D or 2D floating-point array
        /// </summary>
        /// <param name="src">Source array, real or complex. </param>
        /// <param name="dst">Destination array of the same size and same type as the source. </param>
        /// <param name="flags">Transformation flags</param>
        /// <param name="nonzeroRows">Number of nonzero rows to in the source array (in case of forward 2d transform), or a number of rows of interest in the destination array (in case of inverse 2d transform). If the value is negative, zero, or greater than the total number of rows, it is ignored. The parameter can be used to speed up 2d convolution/correlation when computing them via DFT.</param>
#endif
        public static void DFT(CvArr src, CvArr dst, DFTFlag flags, int nonzeroRows)
        {
            if (src == null)
                throw new ArgumentNullException("src");
            if (dst == null)
                throw new ArgumentNullException("dst");
            NativeMethods.cvDFT(src.CvPtr, dst.CvPtr, flags, nonzeroRows);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 1次元あるいは2次元浮動小数点型配列に対して離散フーリエ変換(DFT),逆離散フーリエ変換(IDFT)を行う.
        /// </summary>
        /// <param name="src">入力配列(実数または複素数)</param>
        /// <param name="dst">入力配列と同じサイズ・タイプの出力配列</param>
        /// <param name="flags">変換フラグ</param>
        /// <param name="nonzeroRows">入力配列の非0である行の数(2次元順変換の場合),あるいは出力配列で注目する行の数(2次元逆変換の場合).</param>
#else
        /// <summary>
        /// Performs forward or inverse Discrete Fourier transform of 1D or 2D floating-point array
        /// </summary>
        /// <param name="src">Source array, real or complex. </param>
        /// <param name="dst">Destination array of the same size and same type as the source. </param>
        /// <param name="flags">Transformation flags</param>
        /// <param name="nonzeroRows">Number of nonzero rows to in the source array (in case of forward 2d transform), or a number of rows of interest in the destination array (in case of inverse 2d transform). If the value is negative, zero, or greater than the total number of rows, it is ignored. The parameter can be used to speed up 2d convolution/correlation when computing them via DFT.</param>
#endif
        public static void DFT(CvArr src, CvArr dst, DFTFlag flags, int nonzeroRows)
        {
            if (src == null)
            {
                throw new ArgumentNullException(nameof(src));
            }
            if (dst == null)
            {
                throw new ArgumentNullException(nameof(dst));
            }
            NativeMethods.cvDFT(src.CvPtr, dst.CvPtr, flags, nonzeroRows);
            KeepAlive(src, dst);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 1次元あるいは2次元浮動小数点型配列に対して離散フーリエ変換(DFT),逆離散フーリエ変換(IDFT)を行う.cvDFTのエイリアス.
        /// </summary>
        /// <param name="src">入力配列(実数または複素数)</param>
        /// <param name="dst">入力配列と同じサイズ・タイプの出力配列</param>
        /// <param name="flags">変換フラグ</param>
        /// <param name="nonzeroRows">入力配列の非0である行の数(2次元順変換の場合),あるいは出力配列で注目する行の数(2次元逆変換の場合).</param>
#else
        /// <summary>
        /// Performs forward or inverse Discrete Fourier transform of 1D or 2D floating-point array
        /// </summary>
        /// <param name="src">Source array, real or complex. </param>
        /// <param name="dst">Destination array of the same size and same type as the source. </param>
        /// <param name="flags">Transformation flags</param>
        /// <param name="nonzeroRows">Number of nonzero rows to in the source array (in case of forward 2d transform), or a number of rows of interest in the destination array (in case of inverse 2d transform). If the value is negative, zero, or greater than the total number of rows, it is ignored. The parameter can be used to speed up 2d convolution/correlation when computing them via DFT.</param>
#endif
        public static void FFT(CvArr src, CvArr dst, DFTFlag flags, int nonzeroRows)
        {
            DFT(src, dst, flags, nonzeroRows);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 1次元あるいは2次元浮動小数点型配列に対して離散フーリエ変換(DFT),逆離散フーリエ変換(IDFT)を行う. cvDFTのエイリアス.
        /// </summary>
        /// <param name="src">入力配列(実数または複素数)</param>
        /// <param name="dst">入力配列と同じサイズ・タイプの出力配列</param>
        /// <param name="flags">変換フラグ</param>
#else
        /// <summary>
        /// Performs forward or inverse Discrete Fourier transform of 1D or 2D floating-point array
        /// </summary>
        /// <param name="src">Source array, real or complex. </param>
        /// <param name="dst">Destination array of the same size and same type as the source. </param>
        /// <param name="flags">Transformation flags</param>
#endif
        public static void FFT(CvArr src, CvArr dst, DFTFlag flags)
        {
            DFT(src, dst, flags);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 1次元あるいは2次元浮動小数点型配列に対して離散フーリエ変換(DFT),逆離散フーリエ変換(IDFT)を行う.cvDFTのエイリアス.
        /// </summary>
        /// <param name="src">入力配列(実数または複素数)</param>
        /// <param name="dst">入力配列と同じサイズ・タイプの出力配列</param>
        /// <param name="flags">変換フラグ</param>
        /// <param name="nonzeroRows">入力配列の非0である行の数(2次元順変換の場合),あるいは出力配列で注目する行の数(2次元逆変換の場合).</param>
#else
        /// <summary>
        /// Performs forward or inverse Discrete Fourier transform of 1D or 2D floating-point array
        /// </summary>
        /// <param name="src">Source array, real or complex. </param>
        /// <param name="dst">Destination array of the same size and same type as the source. </param>
        /// <param name="flags">Transformation flags</param>
        /// <param name="nonzeroRows">Number of nonzero rows to in the source array (in case of forward 2d transform), or a number of rows of interest in the destination array (in case of inverse 2d transform). If the value is negative, zero, or greater than the total number of rows, it is ignored. The parameter can be used to speed up 2d convolution/correlation when computing them via DFT.</param>
#endif
        public static void FFT(CvArr src, CvArr dst, DFTFlag flags, int nonzeroRows)
        {
            DFT(src, dst, flags, nonzeroRows);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// 1次元あるいは2次元浮動小数点型配列に対して離散フーリエ変換(DFT),逆離散フーリエ変換(IDFT)を行う. cvDFTのエイリアス.
        /// </summary>
        /// <param name="src">入力配列(実数または複素数)</param>
        /// <param name="dst">入力配列と同じサイズ・タイプの出力配列</param>
        /// <param name="flags">変換フラグ</param>
#else
        /// <summary>
        /// Performs forward or inverse Discrete Fourier transform of 1D or 2D floating-point array
        /// </summary>
        /// <param name="src">Source array, real or complex. </param>
        /// <param name="dst">Destination array of the same size and same type as the source. </param>
        /// <param name="flags">Transformation flags</param>
#endif
        public static void FFT(CvArr src, CvArr dst, DFTFlag flags)
        {
            DFT(src, dst, flags);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// 1次元あるいは2次元浮動小数点型配列に対して離散フーリエ変換(DFT),逆離散フーリエ変換(IDFT)を行う.
        /// </summary>
        /// <param name="src">入力配列(実数または複素数)</param>
        /// <param name="dst">入力配列と同じサイズ・タイプの出力配列</param>
        /// <param name="flags">変換フラグ</param>
        /// <param name="nonzeroRows">入力配列の非0である行の数(2次元順変換の場合),あるいは出力配列で注目する行の数(2次元逆変換の場合).</param>
#else
        /// <summary>
        /// Performs forward or inverse Discrete Fourier transform of 1D or 2D floating-point array
        /// </summary>
        /// <param name="src">Source array, real or complex. </param>
        /// <param name="dst">Destination array of the same size and same type as the source. </param>
        /// <param name="flags">Transformation flags</param>
        /// <param name="nonzeroRows">Number of nonzero rows to in the source array (in case of forward 2d transform), or a number of rows of interest in the destination array (in case of inverse 2d transform). If the value is negative, zero, or greater than the total number of rows, it is ignored. The parameter can be used to speed up 2d convolution/correlation when computing them via DFT.</param>
#endif
        public static void DFT(CvArr src, CvArr dst, DFTFlag flags, int nonzeroRows)
        {
            if (src == null)
                throw new ArgumentNullException("src");
            if (dst == null)
                throw new ArgumentNullException("dst");
            NativeMethods.cvDFT(src.CvPtr, dst.CvPtr, flags, nonzeroRows);
        }