- dissect document into tiles of same size width x height
- stack pieces
- calculate for every pixel-position (i,j) the information content given by this pixel via shannon-definition
- calculate average over all pixel-positions
- reiterate for different tile-sizes
- the tile size with the minimal average per-pixel-information (PPI) is the tile-size (4) which reveals the underlying alphabet
Code:
Keine Kommentare:
Kommentar veröffentlichen