TIOVX User Guide
vx_tutorial_graph_user_kernel_pytiovx_uc.py File Reference

This file show example of using basic PyTIOVX APIs to describe user/target kernel class and use it within an OpenVX graph. More...

Go to the source code of this file.

Data Structures

class  vx_tutorial_graph_user_kernel_pytiovx_uc.NodePhaseRgb
 Class to represent user/target kernel. More...
 

Functions

def vx_tutorial_graph_user_kernel_pytiovx_uc.make_my_graph ()
 Function to describe a graph and generate code, image using PyTIOVX tool.
 

Detailed Description

This file show example of using basic PyTIOVX APIs to describe user/target kernel class and use it within an OpenVX graph.

See vx_tutorial_graph_image_gradients_pytiovx_uc.py for basic API usage.

The basic steps to define user/target class and use it with PyTIOVX tool

  • Define a class for user/target kernel dervied from tiovx::node::Node base class
  • Overide the constructor to explicitly specific the parameters and types
    • This allows the python to do basic syntax checking
  • Overide the checkParams method to specify additional parameter checking if required
  • Write the OpenVX use-case using PyTIOVX APIs
    • Use the user/target class when adding the user/target kernel to the graph
  • Export the graph as C code or .jpg file

See source code of function vx_tutorial_graph_user_kernel_pytiovx_uc.make_my_graph() for detailed API usage for this example.

Definition in file vx_tutorial_graph_user_kernel_pytiovx_uc.py.