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.
似乎 OpenCV 没有直接的方法来找到连接组件或轮廓的平均颜色。
我用过pointPolygonTest;将所有点及其颜色保存在我的轮廓内;比应用mean方法计算平均色调值。问题是,它太慢了。有没有一种快速的方法来实现这一目标?有什么想法或可用的方法吗?
pointPolygonTest
mean