Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次の関数を書き込もうとしています: すべてゼロでオブジェクトの外側の境界 (1 に等しい) を持つ行列を指定して、境界チェーン コードを生成したいと考えています。穴オブジェクトはマトリックス内になく、外側の境界だけです。
*例の図では、すべての行列セルは 0 ですが、青いセルは 1 です。
どんな助けでも大歓迎です!
あなたが探しているのはエッジ検出だと思います:
http://en.wikipedia.org/wiki/Edge_detection