| 466 | | return ApproxChains(src_seq, storage, ContourChain.ApproxSimple); |
| 467 | | } |
| 468 | | #if LANG_JP |
| 469 | | /// <summary> |
| 470 | | /// |
| 471 | | /// </summary> |
| 472 | | /// <param name="src_seq"></param> |
| 473 | | /// <param name="storage"></param> |
| 474 | | /// <param name="method"></param> |
| | 466 | return ApproxChains(src_seq, storage, ContourChain.ApproxSimple, 0, 0, false); |
| | 467 | } |
| | 468 | #if LANG_JP |
| | 469 | /// <summary> |
| | 470 | /// フリーマンチェーン(Freeman chain)をポリラインで近似する |
| | 471 | /// </summary> |
| | 472 | /// <param name="src_seq">他のチェーンから参照可能なチェーンへの参照.</param> |
| | 473 | /// <param name="storage">計算結果保存用のストレージ.</param> |
| | 474 | /// <param name="method">推定手法.</param> |
| 482 | | /// <param name="method">Approximation method (for all the modes, except CV_RETR_RUNS, which uses built-in approximation). |
| 483 | | /// * CV_CHAIN_CODE - output contours in the Freeman chain code. All other methods output polygons (sequences of vertices). |
| 484 | | /// * CV_CHAIN_APPROX_NONE - translate all the points from the chain code into points; |
| 485 | | /// * CV_CHAIN_APPROX_SIMPLE - compress horizontal, vertical, and diagonal segments, that is, the function leaves only their ending points; |
| 486 | | /// * CV_CHAIN_APPROX_TC89_L1, |
| 487 | | /// * CV_CHAIN_APPROX_TC89_KCOS - apply one of the flavors of Teh-Chin chain approximation algorithm. CV_LINK_RUNS - use completely different contour retrieval algorithm via linking of horizontal segments of 1’s. Only CV_RETR_LIST retrieval mode can be used with this method. </param> |
| 488 | | /// <returns></returns> |
| | 482 | /// <param name="method">Approximation method.</param> |
| | 483 | /// /// <returns></returns> |
| 492 | | return ApproxChains(src_seq, storage, method, 0); |
| 493 | | } |
| 494 | | #if LANG_JP |
| 495 | | /// <summary> |
| 496 | | /// |
| 497 | | /// </summary> |
| 498 | | /// <param name="src_seq"></param> |
| 499 | | /// <param name="storage"></param> |
| 500 | | /// <param name="method"></param> |
| 501 | | /// <param name="parameter"></param> |
| | 487 | return ApproxChains(src_seq, storage, method, 0, 0, false); |
| | 488 | } |
| | 489 | #if LANG_JP |
| | 490 | /// <summary> |
| | 491 | /// フリーマンチェーン(Freeman chain)をポリラインで近似する |
| | 492 | /// </summary> |
| | 493 | /// <param name="src_seq">他のチェーンから参照可能なチェーンへの参照.</param> |
| | 494 | /// <param name="storage">計算結果保存用のストレージ.</param> |
| | 495 | /// <param name="method">推定手法.</param> |
| | 496 | /// <param name="parameter">メソッドパラメータ(現在は使われていない).</param> |
| 509 | | /// <param name="method">Approximation method (for all the modes, except CV_RETR_RUNS, which uses built-in approximation). |
| 510 | | /// * CV_CHAIN_CODE - output contours in the Freeman chain code. All other methods output polygons (sequences of vertices). |
| 511 | | /// * CV_CHAIN_APPROX_NONE - translate all the points from the chain code into points; |
| 512 | | /// * CV_CHAIN_APPROX_SIMPLE - compress horizontal, vertical, and diagonal segments, that is, the function leaves only their ending points; |
| 513 | | /// * CV_CHAIN_APPROX_TC89_L1, |
| 514 | | /// * CV_CHAIN_APPROX_TC89_KCOS - apply one of the flavors of Teh-Chin chain approximation algorithm. CV_LINK_RUNS - use completely different contour retrieval algorithm via linking of horizontal segments of 1’s. Only CV_RETR_LIST retrieval mode can be used with this method. </param> |
| | 504 | /// <param name="method">Approximation method.</param> |
| 520 | | return ApproxChains(src_seq, storage, method, parameter, 0); |
| 521 | | } |
| 522 | | #if LANG_JP |
| 523 | | /// <summary> |
| 524 | | /// |
| 525 | | /// </summary> |
| 526 | | /// <param name="src_seq"></param> |
| 527 | | /// <param name="storage"></param> |
| 528 | | /// <param name="method"></param> |
| 529 | | /// <param name="parameter"></param> |
| | 510 | return ApproxChains(src_seq, storage, method, parameter, 0, false); |
| | 511 | } |
| | 512 | #if LANG_JP |
| | 513 | /// <summary> |
| | 514 | /// フリーマンチェーン(Freeman chain)をポリラインで近似する |
| | 515 | /// </summary> |
| | 516 | /// <param name="src_seq">他のチェーンから参照可能なチェーンへの参照.</param> |
| | 517 | /// <param name="storage">計算結果保存用のストレージ.</param> |
| | 518 | /// <param name="method">推定手法.</param> |
| | 519 | /// <param name="parameter">メソッドパラメータ(現在は使われていない).</param> |
| 538 | | /// <param name="method">Approximation method (for all the modes, except CV_RETR_RUNS, which uses built-in approximation). |
| 539 | | /// * CV_CHAIN_CODE - output contours in the Freeman chain code. All other methods output polygons (sequences of vertices). |
| 540 | | /// * CV_CHAIN_APPROX_NONE - translate all the points from the chain code into points; |
| 541 | | /// * CV_CHAIN_APPROX_SIMPLE - compress horizontal, vertical, and diagonal segments, that is, the function leaves only their ending points; |
| 542 | | /// * CV_CHAIN_APPROX_TC89_L1, |
| 543 | | /// * CV_CHAIN_APPROX_TC89_KCOS - apply one of the flavors of Teh-Chin chain approximation algorithm. CV_LINK_RUNS - use completely different contour retrieval algorithm via linking of horizontal segments of 1’s. Only CV_RETR_LIST retrieval mode can be used with this method. </param> |
| | 528 | /// <param name="method">Approximation method.</param> |
| 550 | | return ApproxChains(src_seq, storage, method, parameter, minimal_perimeter, 0); |
| 551 | | } |
| 552 | | #if LANG_JP |
| 553 | | /// <summary> |
| 554 | | /// |
| 555 | | /// </summary> |
| 556 | | /// <param name="src_seq"></param> |
| 557 | | /// <param name="storage"></param> |
| 558 | | /// <param name="method"></param> |
| 559 | | /// <param name="parameter"></param> |
| | 535 | return ApproxChains(src_seq, storage, method, parameter, minimal_perimeter, false); |
| | 536 | } |
| | 537 | #if LANG_JP |
| | 538 | /// <summary> |
| | 539 | /// フリーマンチェーン(Freeman chain)をポリラインで近似する |
| | 540 | /// </summary> |
| | 541 | /// <param name="src_seq">他のチェーンから参照可能なチェーンへの参照.</param> |
| | 542 | /// <param name="storage">計算結果保存用のストレージ.</param> |
| | 543 | /// <param name="method">推定手法.</param> |
| | 544 | /// <param name="parameter">メソッドパラメータ(現在は使われていない).</param> |
| 569 | | /// <param name="method">Approximation method (for all the modes, except CV_RETR_RUNS, which uses built-in approximation). |
| 570 | | /// * CV_CHAIN_CODE - output contours in the Freeman chain code. All other methods output polygons (sequences of vertices). |
| 571 | | /// * CV_CHAIN_APPROX_NONE - translate all the points from the chain code into points; |
| 572 | | /// * CV_CHAIN_APPROX_SIMPLE - compress horizontal, vertical, and diagonal segments, that is, the function leaves only their ending points; |
| 573 | | /// * CV_CHAIN_APPROX_TC89_L1, |
| 574 | | /// * CV_CHAIN_APPROX_TC89_KCOS - apply one of the flavors of Teh-Chin chain approximation algorithm. CV_LINK_RUNS - use completely different contour retrieval algorithm via linking of horizontal segments of 1’s. Only CV_RETR_LIST retrieval mode can be used with this method. </param> |
| | 554 | /// <param name="method">Approximation method.</param> |
| 577 | | /// <param name="recursive">If not 0, the function approximates all chains that access can be obtained to from src_seq by h_next or v_next links. If 0, the single chain is approximated. </param> |
| 578 | | /// <returns></returns> |
| 579 | | #endif |
| 580 | | public static CvSeq<CvPoint> ApproxChains(this CvChain<CvPoint> src_seq, CvMemStorage storage, ContourChain method, double parameter, int minimal_perimeter, int recursive) |
| | 557 | /// <param name="recursive">If true, the function approximates all chains that access can be obtained to from src_seq by h_next or v_next links. If false, the single chain is approximated. </param> |
| | 558 | /// <returns></returns> |
| | 559 | #endif |
| | 560 | public static CvSeq<CvPoint> ApproxChains(this CvChain<CvPoint> src_seq, CvMemStorage storage, ContourChain method, double parameter, int minimal_perimeter, bool recursive) |