/
limb
/
catedit-aurora
Обзор
Документация
Войти
/
limb
/
catedit-aurora
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/segmentationengine.h
34 строки
826 B
Артемий
add: new filters
09 июл 2026, 22:25
09 июл 2026, 22:25
882783f
Код
Авторство
О чём код?
#ifndef SEGMENTATIONENGINE_H #define SEGMENTATIONENGINE_H #include <QColor> #include <QImage> #include <QString> class SegmentationEngine { public: enum class BackgroundMode { SolidColor, BlurOriginal }; static SegmentationEngine &instance(); void setModelPaths(const QString ¶mPath, const QString &binPath); bool isAvailable() const; bool ensureLoaded() const; QImage replaceBackground(const QImage &source, const QColor &color, BackgroundMode mode, qreal *backgroundPercent, qint64 *preprocessMs, qint64 *inferenceMs, qint64 *postprocessMs) const; private: SegmentationEngine() = default; QString m_paramPath; QString m_binPath; mutable bool m_loaded = false; }; #endif // SEGMENTATIONENGINE_H