'How to encode a grid of 9 gray pixels intensity into a single number?
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:
So how to get to which one of 20 my current given image is the closest?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

