如何将9个灰色像素强度的网格编码为单个数字?

发布于 2025-01-27 04:52:39 字数 410 浏览 2 评论 0原文

因此,我的正方形网格上有9个像素。每个都是0..255(灰色图像的阴影)。我想从中得到一种指纹。我有20个可能的选择,我想找到最接近给定图像的方法。

  • 中心填充的4种类型,
  • 6种填充类型,
  • 2种倾斜填充类型,
  • 4种类型的方向填充
  • 4种类型的交叉填充

“在此处输入映像说明”

那么如何到达我当前的20个我当前的20之一给定图像最接近?

So I have 9 pixels on a square grid. Each one is 0..255 (a shade of grey image). I want to get a kind of fingerprint out from it. I have 20 possible options, and I want to find the closest to a given image.

  • 4 types of center fill,
  • 6 types of line fill,
  • 2 types of angled fill,
  • 4 types of direction fill
  • 4 types of cross fill

like this:

enter image description here

So how to get to which one of 20 my current given image is the closest?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文