コード例 #1
0
ファイル: CvSeqT.cs プロジェクト: inohiroki/opencvsharp
        /// <summary>
        /// 指定されたシーケンスの要素のインデックスを返す (cvSeqElemIdx).
        /// </summary>
        /// <param name="element">シーケンス要素</param>
        /// <param name="block">要素を含むシーケンスブロックのアドレスがこの場所に保存される.</param>
        /// <returns>指定されたシーケンス要素のインデックス</returns>
#else
        /// <summary>
        /// Returns index of concrete sequence element (cvSeqElemIdx).
        /// </summary>
        /// <param name="element">the element within the sequence. </param>
        /// <param name="block">the address of the sequence block that contains the element is stored in this location. </param>
        /// <returns>the index of a sequence element or a negative number if the element is not found.</returns>
#endif
        public int ElemIdx(T element, out CvSeqBlock block)
        {
            return(Cv.SeqElemIdx(this, element, out block));
        }
コード例 #2
0
        /// <summary>
        /// 指定されたシーケンスの要素のインデックスを返す (cvSeqElemIdx).
        /// </summary>
        /// <typeparam name="T">要素の型</typeparam>
        /// <param name="element">シーケンス要素</param>
        /// <param name="block">要素を含むシーケンスブロックのアドレスがこの場所に保存される.</param>
        /// <returns>指定されたシーケンス要素のインデックス</returns>
#else
        /// <summary>
        /// Returns index of concrete sequence element (cvSeqElemIdx).
        /// </summary>
        /// <typeparam name="T">Element type</typeparam>
        /// <param name="element">the element within the sequence. </param>
        /// <param name="block">the address of the sequence block that contains the element is stored in this location. </param>
        /// <returns>the index of a sequence element or a negative number if the element is not found.</returns>
#endif
        public int ElemIdx <T>(T element, out CvSeqBlock block) where T : struct
        {
            return(Cv.SeqElemIdx(this, element, out block));
        }