TIOVX User Guide
tiovx.image.Image Class Reference

Image object (OpenVX equivalent = vx_image, specifically returned from vxCreateImage) More...

Inherits tiovx.reference.Reference.

Inherited by tiovx.image.ImageFromChannel, and tiovx.image.ImageFromHandle.

Public Member Functions

def __init__ (self, width, height, df_image, access_type="Host", in_file_addr="./", out_file_addr="./", name="default")
 Constructor used to create this object. More...
 

Detailed Description

Image object (OpenVX equivalent = vx_image, specifically returned from vxCreateImage)

Example Usage: Create a image object of 640x480
from tiovx import *
my_img1 = Image(640, 480, DfImage.YUYV, name="myimage")
my_img2 = Image(640, 480, DfImage.U8)

Definition at line 104 of file image.py.

Constructor & Destructor Documentation

◆ __init__()

def tiovx.image.Image.__init__ (   self,
  width,
  height,
  df_image,
  access_type = "Host",
  in_file_addr = "./",
  out_file_addr = "./",
  name = "default" 
)

Constructor used to create this object.

See also
vxCreateImage for more details about the parameters
Parameters
width[in] Width of image
height[in] Height of image
df_image[in] Image data format. tiovx::enums::DfImage
access_type[in] [optional] Memory access type
in_file_addr[in] [optional] In the case of memory accessed from file, the path to the input file
out_file_addr[in] [optional] In the case of memory outputted to file, the path to the output file
name[in] [optional] Name of the object

Definition at line 116 of file image.py.


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