Wiki
Clone wikiRepair and skeletonize maps / UML specification
UML diagram
Functions
-
repair_image
- Colors white pixels to the closest non-white neighbour colour with the lowest coordinates (most left, most upper)
- Repairs red-black stripes.
- Creates a bitmap same size as the original image where grey pixels become zeros everything else become ones.
-
skeletonize_image
- Skeletonizes the bitmap (created during the repair) and using the bitmap applies the skeleton to the image.
- Every zeros become grey pixels in the image.
-
compare_pixels
- Compares two colors if they are similar with a given tolerance
Abstract types
- Color: (red: [0..255], green: [0..255], blue: [0..255], opacity: [0..255]) - record type
- Image: Matrix of colors indexed by Y,X coordinates
- Bitmap: Matrix of zeros and ones indexed by Y,X coordinates
Updated