ACMX 2.136.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
acmxvk::dnn::GenericOnnxProcessor::Impl Struct Reference

Public Member Functions

 Impl (const std::string &configuration_path)
void process (const cv::Mat &image, cv::Mat &result)
cv::Size resolveInputSize (const cv::Size &source_size) const
const cv::Mat & smoothOutput (const cv::Mat &source)

Public Attributes

cv::Size active_input_size
BackendState backend
int bilateral_diameter = 5
double bilateral_sigma_color = 5.0
double bilateral_sigma_space = 5.0
bool bilateral_smoothing = false
cv::Mat blob
cv::Mat converted
bool dynamic_shape = false
cv::String input_name
cv::Size input_size {224, 224}
cv::Scalar mean {0.0, 0.0, 0.0}
bool multiple_outputs = false
cv::dnn::Net net
cv::String output_name
double scale = 1.0 / 255.0
int shape_alignment = 4
cv::Mat smoothed
bool swap_rb = true
cv::Mat work

Detailed Description

Definition at line 396 of file edge_dnn.cpp.

Constructor & Destructor Documentation

◆ Impl()

acmxvk::dnn::GenericOnnxProcessor::Impl::Impl ( const std::string & configuration_path)
inlineexplicit

Member Function Documentation

◆ process()

void acmxvk::dnn::GenericOnnxProcessor::Impl::process ( const cv::Mat & image,
cv::Mat & result )
inline

◆ resolveInputSize()

cv::Size acmxvk::dnn::GenericOnnxProcessor::Impl::resolveInputSize ( const cv::Size & source_size) const
inlinenodiscard

Definition at line 573 of file edge_dnn.cpp.

References dynamic_shape, input_size, and shape_alignment.

Referenced by process().

◆ smoothOutput()

const cv::Mat & acmxvk::dnn::GenericOnnxProcessor::Impl::smoothOutput ( const cv::Mat & source)
inlinenodiscard

Member Data Documentation

◆ active_input_size

cv::Size acmxvk::dnn::GenericOnnxProcessor::Impl::active_input_size

Definition at line 400 of file edge_dnn.cpp.

Referenced by process().

◆ backend

BackendState acmxvk::dnn::GenericOnnxProcessor::Impl::backend

Definition at line 398 of file edge_dnn.cpp.

Referenced by process().

◆ bilateral_diameter

int acmxvk::dnn::GenericOnnxProcessor::Impl::bilateral_diameter = 5

Definition at line 407 of file edge_dnn.cpp.

Referenced by Impl(), and smoothOutput().

◆ bilateral_sigma_color

double acmxvk::dnn::GenericOnnxProcessor::Impl::bilateral_sigma_color = 5.0

Definition at line 408 of file edge_dnn.cpp.

Referenced by Impl(), and smoothOutput().

◆ bilateral_sigma_space

double acmxvk::dnn::GenericOnnxProcessor::Impl::bilateral_sigma_space = 5.0

Definition at line 409 of file edge_dnn.cpp.

Referenced by Impl(), and smoothOutput().

◆ bilateral_smoothing

bool acmxvk::dnn::GenericOnnxProcessor::Impl::bilateral_smoothing = false

Definition at line 406 of file edge_dnn.cpp.

Referenced by Impl(), and smoothOutput().

◆ blob

cv::Mat acmxvk::dnn::GenericOnnxProcessor::Impl::blob

Definition at line 413 of file edge_dnn.cpp.

Referenced by process().

◆ converted

cv::Mat acmxvk::dnn::GenericOnnxProcessor::Impl::converted

Definition at line 415 of file edge_dnn.cpp.

Referenced by process().

◆ dynamic_shape

bool acmxvk::dnn::GenericOnnxProcessor::Impl::dynamic_shape = false

Definition at line 404 of file edge_dnn.cpp.

Referenced by Impl(), and resolveInputSize().

◆ input_name

cv::String acmxvk::dnn::GenericOnnxProcessor::Impl::input_name

Definition at line 411 of file edge_dnn.cpp.

Referenced by Impl(), and process().

◆ input_size

cv::Size acmxvk::dnn::GenericOnnxProcessor::Impl::input_size {224, 224}

Definition at line 399 of file edge_dnn.cpp.

Referenced by Impl(), and resolveInputSize().

◆ mean

cv::Scalar acmxvk::dnn::GenericOnnxProcessor::Impl::mean {0.0, 0.0, 0.0}

Definition at line 402 of file edge_dnn.cpp.

Referenced by Impl(), and process().

◆ multiple_outputs

bool acmxvk::dnn::GenericOnnxProcessor::Impl::multiple_outputs = false

Definition at line 410 of file edge_dnn.cpp.

Referenced by Impl(), and process().

◆ net

cv::dnn::Net acmxvk::dnn::GenericOnnxProcessor::Impl::net

Definition at line 397 of file edge_dnn.cpp.

Referenced by Impl(), and process().

◆ output_name

cv::String acmxvk::dnn::GenericOnnxProcessor::Impl::output_name

Definition at line 412 of file edge_dnn.cpp.

Referenced by Impl(), and process().

◆ scale

double acmxvk::dnn::GenericOnnxProcessor::Impl::scale = 1.0 / 255.0

Definition at line 401 of file edge_dnn.cpp.

Referenced by Impl(), and process().

◆ shape_alignment

int acmxvk::dnn::GenericOnnxProcessor::Impl::shape_alignment = 4

Definition at line 405 of file edge_dnn.cpp.

Referenced by Impl(), and resolveInputSize().

◆ smoothed

cv::Mat acmxvk::dnn::GenericOnnxProcessor::Impl::smoothed

Definition at line 416 of file edge_dnn.cpp.

Referenced by smoothOutput().

◆ swap_rb

bool acmxvk::dnn::GenericOnnxProcessor::Impl::swap_rb = true

Definition at line 403 of file edge_dnn.cpp.

Referenced by Impl(), and process().

◆ work

cv::Mat acmxvk::dnn::GenericOnnxProcessor::Impl::work

Definition at line 414 of file edge_dnn.cpp.

Referenced by process().


The documentation for this struct was generated from the following file: