VisionCpp  0.0.1
Static Public Member Functions | List of all members
visioncpp::internal::tools::Convertor< T > Struct Template Reference

This struct is used to convert the provide struct to flot4, uint4, int4 memory. More...

#include <convert.hpp>

Collaboration diagram for visioncpp::internal::tools::Convertor< T >:

Static Public Member Functions

static T convert (T t)
 function convert More...
 

Detailed Description

template<typename T>
struct visioncpp::internal::tools::Convertor< T >

This struct is used to convert the provide struct to flot4, uint4, int4 memory.

Also it s used to propagate all the channels of an element with one primary value. The former is used when we have an image while the latter is used for broadcast function. When both types are the same it does nothing but returns the input. template parameters:

Template Parameters
Tis the input type to be converted

Definition at line 38 of file convert.hpp.

Member Function Documentation

◆ convert()

template<typename T >
static T visioncpp::internal::tools::Convertor< T >::convert ( t)
inlinestatic

function convert

Convert the input type to the output type. When both types are the same it does nothing but returns the input. parameters:

Parameters
tInput type to be converted
Returns
T

Definition at line 45 of file convert.hpp.

Referenced by visioncpp::internal::tools::convert().

Here is the caller graph for this function:

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