TIOVX User Guide
tiovx.scalar.Scalar Class Reference

Scalar object (OpenVX equivalent = vx_scalar) More...

Inherits tiovx.reference.Reference.

Public Member Functions

def __init__ (self, data_type, value="0", name="default")
 Constructor used to create this object. More...
 

Detailed Description

Scalar object (OpenVX equivalent = vx_scalar)

Example Usage: Create a Scalar object
from tiovx import *
my_scalar1 = Scalar(Type.UINT8, 8, name="myscalar")
my_scalar2 = Scalar(Type.FLOAT32, 0.8)
my_scalar3 = Scalar(Type.CHAR, 'c')

Definition at line 77 of file scalar.py.

Constructor & Destructor Documentation

◆ __init__()

def tiovx.scalar.Scalar.__init__ (   self,
  data_type,
  value = "0",
  name = "default" 
)

Constructor used to create this object.

See also
vxCreateScalar for more details about the parameters
Parameters
data_type[in] Data type. tiovx::enums::Type
value[in] Value of type 'data_type'
name[in] [optional] Name of the object

Definition at line 85 of file scalar.py.


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