https://github.com/vehagn/mlaa
MorphoLogical AntiAliasing for monchromatic models
https://github.com/vehagn/mlaa
anti-aliasing image-processing image-recognition mlaa modeling modelling
Last synced: 11 months ago
JSON representation
MorphoLogical AntiAliasing for monchromatic models
- Host: GitHub
- URL: https://github.com/vehagn/mlaa
- Owner: vehagn
- License: gpl-3.0
- Created: 2018-02-22T10:08:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-12T13:56:46.000Z (over 7 years ago)
- Last Synced: 2024-01-29T07:36:50.404Z (almost 2 years ago)
- Topics: anti-aliasing, image-processing, image-recognition, mlaa, modeling, modelling
- Language: C++
- Size: 38.1 KB
- Stars: 11
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MLAA
**M**orpho**L**ogical **A**nti**A**liasing for monchromatic models based on [Reshetov A. 2009. Morphological Antialiasing, in Proceedings of the Conference on High Performance Graphics 2009](http://doi.acm.org/10.1145/1572769.1572787)
## Use
A simple proof of concept for smoothing syntethic models in a hope to alleviate the "staircase effect." Note that horizontal and vertical edges are kept as-is, while only slopes are anti-aliased by "hallucinating" edges/faux supersampling.
**Before:**
![alt text][raw]
**After**:
![alt text][mlaa]
[raw]: https://raw.githubusercontent.com/vehagn/mlaa/master/raw.bmp "Raw model"
[mlaa]: https://raw.githubusercontent.com/vehagn/mlaa/master/mlaa.bmp "MLAA model"
## Limitations
Currently only Z-shapes are fully supported. U shapes are implemented, but some bugs are present.
### Edge classifications
1. ▏ (1) left
2. ▕ (2) right
4. ▁ (4) bottom
8. ▔ (8) top
### Shape classifications
#### Row shapes
2. └┐ (2)
4. ┌┘ (4)
8. └┘ (8)
16. ┌┐ (16)
32. ─┘ (32)
64. ─┐ (64)
128. └─ (128)
256. ┌─ (256)
#### Column shapes
3. ┐ (3)
└
5. ┌ (5)
┘
9. ┐ (9)
┘
17. ┌ (17)
└
33. │ (33)
┘
65. │ (65)
└
129. ┐ (129)
│
257. ┌ (257)
│