Two-colour ‘edge detection’
| File | Size | Last modified | Description | Requirements and optionals | |
|---|---|---|---|---|---|
|
|
23½ KB | 2006-Aug-17 | Source and ALF | RISC OS | |
|
|
17¼ KB | 2006-Aug-17 | Source | ISO C90 | |
This is a small library for searching a two-colour grid of cells for the edges between the colours. This can be used to plot an efficient vector path which, when filled using an even-odd fill rule, outlines one of the colours.
It can also do multicolour images. (Note that it should work best with fewer colours.) It will try to simplify the paths of each colour by adding extra cells into the plotted area, so long as such cells are hidden by other colours drawn later.
<edges.h>