1#ifndef ACMXVK_EDGE_DNN_HPP
2#define ACMXVK_EDGE_DNN_HPP
7#include <opencv2/core/mat.hpp>
19 void process(
const cv::Mat &image, cv::Mat &result);
23 std::unique_ptr<Impl>
impl;
34 void process(
const cv::Mat &image, cv::Mat &result);
38 std::unique_ptr<Impl>
impl;
49 [[nodiscard]] cv::Mat
infer(
const cv::Mat &image);
53 std::unique_ptr<Impl>
impl;
56 [[nodiscard]] cv::Mat
hardenedAlphaMask(
const cv::Mat &image,
const cv::Mat &mask,
float black_point,
float white_point);
57 [[nodiscard]] cv::Mat
isolateBody(
const cv::Mat &image,
const cv::Mat &mask,
float black_point,
float white_point);
EdgeDetector & operator=(const EdgeDetector &)=delete
EdgeDetector(const EdgeDetector &)=delete
EdgeDetector(const std::string &model_path)
void process(const cv::Mat &image, cv::Mat &result)
std::unique_ptr< Impl > impl
std::unique_ptr< Impl > impl
void process(const cv::Mat &image, cv::Mat &result)
GenericOnnxProcessor & operator=(const GenericOnnxProcessor &)=delete
GenericOnnxProcessor(const std::string &configuration_path)
GenericOnnxProcessor(const GenericOnnxProcessor &)=delete
cv::Mat infer(const cv::Mat &image)
HumanSegmenter & operator=(const HumanSegmenter &)=delete
HumanSegmenter(const std::string &model_path)
HumanSegmenter(const HumanSegmenter &)=delete
std::unique_ptr< Impl > impl
cv::Mat hardenedAlphaMask(const cv::Mat &image, const cv::Mat &mask, float black_point, float white_point)
cv::Mat isolateBody(const cv::Mat &image, const cv::Mat &mask, float black_point, float white_point)