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.
开始一个新的应用程序,在我开始之前想知道你的想法......计算图像区域的最佳方法是什么......假设我有一个 100 X 100 像素的正方形,顶部还有另一个正方形其中(10 x 10)。我将如何找到显示 100x100 正方形的区域?如果有多个 10x10 的正方形并且它们重叠怎么办?
谢谢!
从包含 10,000 个元素的全零位图开始,将所有正方形绘制为 1,并在完成后计算零位。
如果您使用 128x128 的正方形,数学运算会快得多,它可以由 64 位架构上的 128 对 64 位无符号整数或 32 位芯片上的四个 32 位无符号整数组来表示。