Skip to content

cvedia::rt::builtin

Classes

Name
class cvedia::rt::builtin::CameraResolutions
struct cvedia::rt::builtin::ResolutionMPInfo

Types

Name
enum class ResizeMethod
enum class std::int8_t ResolutionMP

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)

Types Documentation

enum ResizeMethod

Enumerator Value Description
SQUASH
FIT
PLACE

enum ResolutionMP

Enumerator Value Description
Default
Native
Megapixels_8
Megapixels_5
Megapixels_4
Megapixels_2
Megapixels_1
Megapixels_0_3

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
)