Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="edge"></param>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="edge"></param>
        /// <returns></returns>
#endif
        public static bool IS_GRAPH_EDGE_VISITED(CvGraphEdge edge)
        {
            if (edge == null)
            {
                throw new ArgumentNullException("edge");
            }
            return(IS_GRAPH_EDGE_VISITED(edge.CvPtr));
        }
Esempio n. 2
0
        /// <summary>
        /// グラフの辺のインデックスを返す
        /// </summary>
        /// <param name="edge">辺への参照</param>
        /// <returns>グラフの辺のインデックス</returns>
#else
        /// <summary>
        /// Returns index of graph edge
        /// </summary>
        /// <param name="edge">Graph edge. </param>
        /// <returns>The function cvGraphEdgeIdx returns index of the graph edge.</returns>
#endif
        public int GraphEdgeIdx(CvGraphEdge edge)
        {
            return(Cv.GraphEdgeIdx(this, edge));
        }
Esempio n. 3
0
        /// <summary>
        /// グラフに辺を追加する(ポインタ指定)
        /// </summary>
        /// <param name="startVtx">辺の始点を示す頂点</param>
        /// <param name="endVtx">辺の終点を示す頂点</param>
        /// <returns>追加に成功すると1を返し,すでに二つの頂点を接続する辺が存在する場合は0を返し,頂点のどちらかが存在しない,始点と終点が同じとき,他の重大な問題があるときには-1を返す.</returns>
#else
        /// <summary>
        /// Adds edge to graph
        /// </summary>
        /// <param name="startVtx">Starting vertex of the edge. </param>
        /// <param name="endVtx">Ending vertex of the edge. For unoriented graph the order of the vertex parameters does not matter. </param>
        /// <returns>The function cvGraphAddEdge connects two specified vertices. The function returns 1 if the edge has been added successfully, 0 if the edge connecting the two vertices exists already and -1 if either of the vertices was not found, the starting and the ending vertex are the same or there is some other critical situation. In the latter case (i.e. when the result is negative) the function also reports an error by default.</returns>
#endif
        public int GraphAddEdgeByPtr(CvGraphEdge startVtx, CvGraphEdge endVtx)
        {
            return(Cv.GraphAddEdgeByPtr(this, startVtx, endVtx));
        }
Esempio n. 4
0
        /// <summary>
        /// グラフに辺を追加する(ポインタ指定)
        /// </summary>
        /// <param name="startVtx">辺の始点を示す頂点</param>
        /// <param name="endVtx">辺の終点を示す頂点</param>
        /// <param name="edge">オプションの入力パラメータ,辺の初期化データ.</param>
        /// <param name="insertedEdge">辺の集合の中で入力された辺のアドレスを保存するための,オプションの出力パラメータ.</param>
        /// <returns>追加に成功すると1を返し,すでに二つの頂点を接続する辺が存在する場合は0を返し,頂点のどちらかが存在しない,始点と終点が同じとき,他の重大な問題があるときには-1を返す.</returns>
#else
        /// <summary>
        /// Adds edge to graph
        /// </summary>
        /// <param name="startVtx">Starting vertex of the edge. </param>
        /// <param name="endVtx">Ending vertex of the edge. For unoriented graph the order of the vertex parameters does not matter. </param>
        /// <param name="edge">Optional input parameter, initialization data for the edge. </param>
        /// <param name="insertedEdge">Optional output parameter to contain the address of the inserted edge. </param>
        /// <returns>The function cvGraphAddEdge connects two specified vertices. The function returns 1 if the edge has been added successfully, 0 if the edge connecting the two vertices exists already and -1 if either of the vertices was not found, the starting and the ending vertex are the same or there is some other critical situation. In the latter case (i.e. when the result is negative) the function also reports an error by default.</returns>
#endif
        public int GraphAddEdgeByPtr(CvGraphEdge startVtx, CvGraphEdge endVtx, CvGraphEdge edge, IntPtr insertedEdge)
        {
            return(Cv.GraphAddEdgeByPtr(this, startVtx, endVtx, edge, insertedEdge));
        }
Esempio n. 5
0
        /// <summary>
        /// グラフの辺のインデックスを返す
        /// </summary>
        /// <param name="edge">辺への参照</param>
        /// <returns>グラフの辺のインデックス</returns>
#else
        /// <summary>
        /// Returns index of graph edge
        /// </summary>
        /// <param name="edge">Graph edge. </param>
        /// <returns>The function cvGraphEdgeIdx returns index of the graph edge.</returns>
#endif
        public int GraphEdgeIdx(CvGraphEdge edge)
        {
            return Cv.GraphEdgeIdx(this, edge);
        }
Esempio n. 6
0
        /// <summary>
        /// グラフに辺を追加する(インデックス指定)
        /// </summary>
        /// <param name="startIdx">辺の始点を示すインデックス</param>
        /// <param name="endIdx">辺の終点を示すインデックス.無向グラフの場合,順序はどちらでもよい. </param>
        /// <param name="edge">オプションの入力パラメータ.辺の初期化のためのデータ. </param>
        /// <param name="insertedEdge">入力された辺のアドレスを保存するための,オプションの出力パラメータ. </param>
        /// <returns>追加に成功すると1を返し,すでに二つの頂点を接続する辺が存在する場合は0を返し,頂点のどちらかが存在しない,始点と終点が同じとき,他の重大な問題があるときには-1を返す.</returns>
#else
        /// <summary>
        /// Adds edge to graph
        /// </summary>
        /// <param name="startIdx">Index of the starting vertex of the edge. </param>
        /// <param name="endIdx">Index of the ending vertex of the edge. For unoriented graph the order of the vertex parameters does not matter. </param>
        /// <param name="edge">Optional input parameter, initialization data for the edge. </param>
        /// <param name="insertedEdge">Optional output parameter to contain the address of the inserted edge. </param>
        /// <returns>The function cvGraphAddEdge connects two specified vertices. The function returns 1 if the edge has been added successfully, 0 if the edge connecting the two vertices exists already and -1 if either of the vertices was not found, the starting and the ending vertex are the same or there is some other critical situation. In the latter case (i.e. when the result is negative) the function also reports an error by default.</returns>
#endif
        public int GraphAddEdge(int startIdx, int endIdx, CvGraphEdge edge, IntPtr insertedEdge)
        {
            return(Cv.GraphAddEdge(this, startIdx, endIdx, edge, insertedEdge));
        }
Esempio n. 7
0
        /// <summary>
        /// グラフに辺を追加する(ポインタ指定)
        /// </summary>
        /// <param name="start_vtx">辺の始点を示す頂点</param>
        /// <param name="end_vtx">辺の終点を示す頂点</param>
        /// <param name="edge">オプションの入力パラメータ,辺の初期化データ.</param>
        /// <param name="inserted_edge">辺の集合の中で入力された辺のアドレスを保存するための,オプションの出力パラメータ.</param>
        /// <returns>追加に成功すると1を返し,すでに二つの頂点を接続する辺が存在する場合は0を返し,頂点のどちらかが存在しない,始点と終点が同じとき,他の重大な問題があるときには-1を返す.</returns>
#else
        /// <summary>
        /// Adds edge to graph
        /// </summary>
        /// <param name="start_vtx">Starting vertex of the edge. </param>
        /// <param name="end_vtx">Ending vertex of the edge. For unoriented graph the order of the vertex parameters does not matter. </param>
        /// <param name="edge">Optional input parameter, initialization data for the edge. </param>
        /// <param name="inserted_edge">Optional output parameter to contain the address of the inserted edge. </param>
        /// <returns>The function cvGraphAddEdge connects two specified vertices. The function returns 1 if the edge has been added successfully, 0 if the edge connecting the two vertices exists already and -1 if either of the vertices was not found, the starting and the ending vertex are the same or there is some other critical situation. In the latter case (i.e. when the result is negative) the function also reports an error by default.</returns>
#endif
        public int GraphAddEdgeByPtr(CvGraphEdge start_vtx, CvGraphEdge end_vtx, CvGraphEdge edge, IntPtr inserted_edge)
        {
            return Cv.GraphAddEdgeByPtr(this, start_vtx, end_vtx, edge, inserted_edge);
        }
Esempio n. 8
0
        /// <summary>
        /// グラフに辺を追加する(ポインタ指定)
        /// </summary>
        /// <param name="start_vtx">辺の始点を示す頂点</param>
        /// <param name="end_vtx">辺の終点を示す頂点</param>
        /// <param name="edge">オプションの入力パラメータ,辺の初期化データ.</param>
        /// <returns>追加に成功すると1を返し,すでに二つの頂点を接続する辺が存在する場合は0を返し,頂点のどちらかが存在しない,始点と終点が同じとき,他の重大な問題があるときには-1を返す.</returns>
#else
        /// <summary>
        /// Adds edge to graph
        /// </summary>
        /// <param name="start_vtx">Starting vertex of the edge. </param>
        /// <param name="end_vtx">Ending vertex of the edge. For unoriented graph the order of the vertex parameters does not matter. </param>
        /// <param name="edge">Optional input parameter, initialization data for the edge. </param>
        /// <returns>The function cvGraphAddEdge connects two specified vertices. The function returns 1 if the edge has been added successfully, 0 if the edge connecting the two vertices exists already and -1 if either of the vertices was not found, the starting and the ending vertex are the same or there is some other critical situation. In the latter case (i.e. when the result is negative) the function also reports an error by default.</returns>
#endif
        public int GraphAddEdgeByPtr(CvGraphEdge start_vtx, CvGraphEdge end_vtx, CvGraphEdge edge)
        {
            return Cv.GraphAddEdgeByPtr(this, start_vtx, end_vtx, edge);
        }
Esempio n. 9
0
        /// <summary>
        /// グラフに辺を追加する(インデックス指定)
        /// </summary>
        /// <param name="start_idx">辺の始点を示すインデックス</param>
        /// <param name="end_idx">辺の終点を示すインデックス.無向グラフの場合,順序はどちらでもよい. </param>
        /// <param name="edge">オプションの入力パラメータ.辺の初期化のためのデータ. </param>
        /// <param name="inserted_edge">入力された辺のアドレスを保存するための,オプションの出力パラメータ. </param>
        /// <returns>追加に成功すると1を返し,すでに二つの頂点を接続する辺が存在する場合は0を返し,頂点のどちらかが存在しない,始点と終点が同じとき,他の重大な問題があるときには-1を返す.</returns>
#else
        /// <summary>
        /// Adds edge to graph
        /// </summary>
        /// <param name="start_idx">Index of the starting vertex of the edge. </param>
        /// <param name="end_idx">Index of the ending vertex of the edge. For unoriented graph the order of the vertex parameters does not matter. </param>
        /// <param name="edge">Optional input parameter, initialization data for the edge. </param>
        /// <param name="inserted_edge">Optional output parameter to contain the address of the inserted edge. </param>
        /// <returns>The function cvGraphAddEdge connects two specified vertices. The function returns 1 if the edge has been added successfully, 0 if the edge connecting the two vertices exists already and -1 if either of the vertices was not found, the starting and the ending vertex are the same or there is some other critical situation. In the latter case (i.e. when the result is negative) the function also reports an error by default.</returns>
#endif
        public int GraphAddEdge(int start_idx, int end_idx, CvGraphEdge edge, IntPtr inserted_edge)
        {
            return Cv.GraphAddEdge(this, start_idx, end_idx, edge, inserted_edge);
        }
Esempio n. 10
0
        /// <summary>
        /// グラフに辺を追加する(インデックス指定)
        /// </summary>
        /// <param name="start_idx">辺の始点を示すインデックス</param>
        /// <param name="end_idx">辺の終点を示すインデックス.無向グラフの場合,順序はどちらでもよい. </param>
        /// <param name="edge">オプションの入力パラメータ.辺の初期化のためのデータ. </param>
        /// <returns>追加に成功すると1を返し,すでに二つの頂点を接続する辺が存在する場合は0を返し,頂点のどちらかが存在しない,始点と終点が同じとき,他の重大な問題があるときには-1を返す.</returns>
#else
        /// <summary>
        /// Adds edge to graph
        /// </summary>
        /// <param name="start_idx">Index of the starting vertex of the edge. </param>
        /// <param name="end_idx">Index of the ending vertex of the edge. For unoriented graph the order of the vertex parameters does not matter. </param>
        /// <param name="edge">Optional input parameter, initialization data for the edge. </param>
        /// <returns>The function cvGraphAddEdge connects two specified vertices. The function returns 1 if the edge has been added successfully, 0 if the edge connecting the two vertices exists already and -1 if either of the vertices was not found, the starting and the ending vertex are the same or there is some other critical situation. In the latter case (i.e. when the result is negative) the function also reports an error by default.</returns>
#endif
        public int GraphAddEdge(int start_idx, int end_idx, CvGraphEdge edge)
        {
            return Cv.GraphAddEdge(this, start_idx, end_idx, edge);
        }
Esempio n. 11
0
        /// <summary>
        /// グラフに辺を追加する(ポインタ指定)
        /// </summary>
        /// <param name="startVtx">辺の始点を示す頂点</param>
        /// <param name="endVtx">辺の終点を示す頂点</param>
        /// <returns>追加に成功すると1を返し,すでに二つの頂点を接続する辺が存在する場合は0を返し,頂点のどちらかが存在しない,始点と終点が同じとき,他の重大な問題があるときには-1を返す.</returns>
#else
        /// <summary>
        /// Adds edge to graph
        /// </summary>
        /// <param name="startVtx">Starting vertex of the edge. </param>
        /// <param name="endVtx">Ending vertex of the edge. For unoriented graph the order of the vertex parameters does not matter. </param>
        /// <returns>The function cvGraphAddEdge connects two specified vertices. The function returns 1 if the edge has been added successfully, 0 if the edge connecting the two vertices exists already and -1 if either of the vertices was not found, the starting and the ending vertex are the same or there is some other critical situation. In the latter case (i.e. when the result is negative) the function also reports an error by default.</returns>
#endif
        public int GraphAddEdgeByPtr(CvGraphEdge startVtx, CvGraphEdge endVtx)
        {
            return Cv.GraphAddEdgeByPtr(this, startVtx, endVtx);
        }