Skip to content

builtin/cv_utility.cpp

Namespaces

Name
cvedia
cvedia::rt
API for controlling the server and lifecycle management of runtime instances.
cvedia::rt::builtin

Functions

Name
ResizeMethod stringToResizeMethod(std::string method)
int stringToInterpolationMethod(std::string method, std::string const & defaultMethod)
int numberOfCwRotationTimesToRotateCode(int times)
expected< void > resizeCpu(cv::Mat const & src, cv::OutputArray dst, cv::Size const & targetSize, builtin::ResizeMethod method, int interpolation, cv::Scalar const & pad =cv::Scalar::all(0))
expected< void > resizeGpu(cv::UMat const & src, cv::OutputArray dst, cv::Size const & targetSize, builtin::ResizeMethod method, int interpolation, cv::Scalar const & pad =cv::Scalar::all(0))
expected< void > resizeImage(cv::InputArray source, cv::OutputArray destination, cv::Size const & size, builtin::ResizeMethod resizeMethod, std::string const & interpolationMethod, cv::Scalar const & pad)
expected< void > resizeImageMat(cv::InputArray source, cv::OutputArray destination, cv::Size const & size, ResizeMethod resizeMethod, std::string const & interpolationMethod)

Functions Documentation

function stringToResizeMethod

ResizeMethod stringToResizeMethod(
    std::string method
)

function stringToInterpolationMethod

int stringToInterpolationMethod(
    std::string method,
    std::string const & defaultMethod
)

function numberOfCwRotationTimesToRotateCode

int numberOfCwRotationTimesToRotateCode(
    int times
)

function resizeCpu

expected< void > resizeCpu(
    cv::Mat const & src,
    cv::OutputArray dst,
    cv::Size const & targetSize,
    builtin::ResizeMethod method,
    int interpolation,
    cv::Scalar const & pad =cv::Scalar::all(0)
)

function resizeGpu

expected< void > resizeGpu(
    cv::UMat const & src,
    cv::OutputArray dst,
    cv::Size const & targetSize,
    builtin::ResizeMethod method,
    int interpolation,
    cv::Scalar const & pad =cv::Scalar::all(0)
)

function resizeImage

expected< void > resizeImage(
    cv::InputArray source,
    cv::OutputArray destination,
    cv::Size const & size,
    builtin::ResizeMethod resizeMethod,
    std::string const & interpolationMethod,
    cv::Scalar const & pad
)

function resizeImageMat

expected< void > resizeImageMat(
    cv::InputArray source,
    cv::OutputArray destination,
    cv::Size const & size,
    ResizeMethod resizeMethod,
    std::string const & interpolationMethod
)