Files
OmaPhoto/src/Document/MaskTracing.h
T

13 lines
410 B
C++

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