#pragma once #include #include #include // Raster coverage traced into an outline along exact pixel edges. namespace MaskTracing { std::optional darkPixels(const QImage &image); // A mask's pixels at least half white: what it shows. std::optional whitePixels(const QImage &image); std::optional opaquePixels(const QImage &image); }