ACMX 2.139.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
ac_dnn::anonymous_namespace{dnn.cpp} Namespace Reference

Classes

struct  BackendState
struct  TimedOutput

Enumerations

enum class  BackendMode {
  Auto , Cpu , Cuda , CudaFp16 ,
  Explicit
}

Functions

bool backendAvailable (cv::dnn::Backend backend, cv::dnn::Target target)
BackendMode backendModeFromEnvironment ()
TimedOutput benchmarkBackend (cv::dnn::Net &net, const cv::Mat &blob, const cv::String &inputName, const cv::String &outputName)
cv::Mat buildHardenedFloatAlpha (const cv::Mat &image, const cv::Mat &mask, float blackPoint, float whitePoint)
cv::String lastOutputName (const cv::dnn::Net &net)
cv::Mat runForward (cv::dnn::Net &net, const cv::Mat &blob, const cv::String &inputName, const cv::String &outputName)
cv::Mat selectBackendAndForward (cv::dnn::Net &net, BackendState &state, const cv::Mat &blob, const cv::String &inputName, const cv::String &outputName)
void setCpuBackend (cv::dnn::Net &net)
void setCudaBackend (cv::dnn::Net &net, bool fp16)
cv::Mat spatialPlane (const cv::Mat &output)

Enumeration Type Documentation

◆ BackendMode

enum class ac_dnn::anonymous_namespace{dnn.cpp}::BackendMode
strong
Enumerator
Auto 
Cpu 
Cuda 
CudaFp16 
Explicit 

Definition at line 28 of file dnn.cpp.

Function Documentation

◆ backendAvailable()

bool ac_dnn::anonymous_namespace{dnn.cpp}::backendAvailable ( cv::dnn::Backend backend,
cv::dnn::Target target )

Definition at line 56 of file dnn.cpp.

References backendAvailable().

Referenced by backendAvailable(), and selectBackendAndForward().

◆ backendModeFromEnvironment()

BackendMode ac_dnn::anonymous_namespace{dnn.cpp}::backendModeFromEnvironment ( )

Definition at line 38 of file dnn.cpp.

References Auto, backendModeFromEnvironment(), Cpu, Cuda, and CudaFp16.

Referenced by backendModeFromEnvironment(), and selectBackendAndForward().

◆ benchmarkBackend()

TimedOutput ac_dnn::anonymous_namespace{dnn.cpp}::benchmarkBackend ( cv::dnn::Net & net,
const cv::Mat & blob,
const cv::String & inputName,
const cv::String & outputName )

◆ buildHardenedFloatAlpha()

cv::Mat ac_dnn::anonymous_namespace{dnn.cpp}::buildHardenedFloatAlpha ( const cv::Mat & image,
const cv::Mat & mask,
float blackPoint,
float whitePoint )

Definition at line 610 of file dnn.cpp.

References buildHardenedFloatAlpha().

Referenced by buildHardenedFloatAlpha().

◆ lastOutputName()

cv::String ac_dnn::anonymous_namespace{dnn.cpp}::lastOutputName ( const cv::dnn::Net & net)

Definition at line 171 of file dnn.cpp.

References lastOutputName().

Referenced by lastOutputName().

◆ runForward()

cv::Mat ac_dnn::anonymous_namespace{dnn.cpp}::runForward ( cv::dnn::Net & net,
const cv::Mat & blob,
const cv::String & inputName,
const cv::String & outputName )

Definition at line 75 of file dnn.cpp.

References runForward().

Referenced by benchmarkBackend(), runForward(), and selectBackendAndForward().

◆ selectBackendAndForward()

◆ setCpuBackend()

void ac_dnn::anonymous_namespace{dnn.cpp}::setCpuBackend ( cv::dnn::Net & net)

Definition at line 65 of file dnn.cpp.

References setCpuBackend().

Referenced by selectBackendAndForward(), and setCpuBackend().

◆ setCudaBackend()

void ac_dnn::anonymous_namespace{dnn.cpp}::setCudaBackend ( cv::dnn::Net & net,
bool fp16 )

Definition at line 70 of file dnn.cpp.

References setCudaBackend().

Referenced by selectBackendAndForward(), and setCudaBackend().

◆ spatialPlane()

cv::Mat ac_dnn::anonymous_namespace{dnn.cpp}::spatialPlane ( const cv::Mat & output)

Definition at line 176 of file dnn.cpp.

References spatialPlane().

Referenced by spatialPlane().