TIOVX User Guide
tiovx.context.Context Class Reference

Context object (OpenVX equivalent = vx_context) More...

Inherits tiovx.reference.Reference.

Public Member Functions

def __init__ (self, name="default")
 Constructor used to create this object. More...
 
def add (self, ref)
 Add graph or node or data object to context. More...
 

Detailed Description

Context object (OpenVX equivalent = vx_context)

Example Usage: Create a context
from tiovx import *
my_context = Context("my_context_name")
my_context.add(my_graph)
my_context.add(my_node)
my_context.add(my_data)

Definition at line 80 of file context.py.

Constructor & Destructor Documentation

◆ __init__()

def tiovx.context.Context.__init__ (   self,
  name = "default" 
)

Constructor used to create this object.

See also
vxCreateContext for more details about the parameters
Parameters
name[in] Name to assign to this context

Definition at line 86 of file context.py.

Member Function Documentation

◆ add()

def tiovx.context.Context.add (   self,
  ref 
)

Add graph or node or data object to context.

Parameters
ref[in] Object of type Graph, Node or Data Object

Definition at line 106 of file context.py.


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