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.
オブジェクトの輪郭と線があります。 オブジェクトは動いていますが、線は一定です。 輪郭が線と交差する点を知りたいです。
例:-フィニッシュラインであるカーレースの例を見てください。 私は車とフィニッシュラインの輪郭を持っています。 フィニッシュラインと交差する等高線上の点を知りたい。
オブジェクトの輪郭を線の輪郭と交差させ(use numpy.logical_and( object_mask, line_mask ))、結果の画像がゼロ以外のすべての点が交差点になります。
numpy.logical_and( object_mask, line_mask )