Freitag, 16. Oktober 2020

An Algorithm for Abstraction 1

To detect abstraction within a given document - e.g. letters - follow these steps:

- dissect document into tiles of same size width 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