ACMX 2.136.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
edge_dnn.cpp File Reference
#include "edge_dnn.hpp"
#include "input_validation.hpp"
#include <algorithm>
#include <array>
#include <cctype>
#include <chrono>
#include <cmath>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <iterator>
#include <limits>
#include <set>
#include <stdexcept>
#include <string_view>
#include <vector>
#include <opencv2/core/persistence.hpp>
#include <opencv2/core/version.hpp>
#include <opencv2/dnn.hpp>
#include <opencv2/imgproc.hpp>

Go to the source code of this file.

Classes

struct  acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::BackendState
struct  acmxvk::dnn::GenericOnnxProcessor::Impl
struct  acmxvk::dnn::EdgeDetector::Impl
struct  acmxvk::dnn::HumanSegmenter::Impl
struct  acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::TimedOutput

Namespaces

namespace  acmxvk
namespace  acmxvk::dnn
namespace  acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}

Functions

bool acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::backendAvailable (cv::dnn::Backend backend, cv::dnn::Target target)
TimedOutput acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::benchmarkBackend (cv::dnn::Net &net, const cv::Mat &blob, const cv::String &input_name, const cv::String &output_name)
cv::Mat acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::buildHardenedFloatAlpha (const cv::Mat &image, const cv::Mat &mask, float black_point, float white_point)
cv::Mat acmxvk::dnn::hardenedAlphaMask (const cv::Mat &image, const cv::Mat &mask, float black_point, float white_point)
cv::Mat acmxvk::dnn::isolateBody (const cv::Mat &image, const cv::Mat &mask, float black_point, float white_point)
cv::String acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::lastOutputName (const cv::dnn::Net &net)
bool acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::readBoolean (const cv::FileNode &node, bool default_value, std::string_view context)
int acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::readInteger (const cv::FileNode &node, int default_value, std::string_view context)
double acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::readNumber (const cv::FileNode &node, double default_value, std::string_view context)
std::string acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::readString (const cv::FileNode &node, std::string_view context, bool allow_empty=false)
std::string acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::readYamlText (const std::filesystem::path &path)
cv::Mat acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::runForward (cv::dnn::Net &net, const cv::Mat &blob, const cv::String &input_name, const cv::String &output_name)
cv::Mat acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::selectBackendAndForward (cv::dnn::Net &net, BackendState &state, const cv::Mat &blob, const cv::String &input_name, const cv::String &output_name)
void acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::setCpuBackend (cv::dnn::Net &net)
void acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::setCudaBackend (cv::dnn::Net &net, bool fp16)
cv::Mat acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::spatialPlane (const cv::Mat &output)
void acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::validateMapKeys (const cv::FileNode &node, const std::set< std::string > &allowed, std::string_view context)
void acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::validateTensorName (std::string_view name)