https://9dok.org/document/yevrk2or-fast-content-adaptive-image-segmentation.html