84 def __init__(self, dim_x, dim_y, stride_x, stride_y, scale_x=1024, scale_y=1024, step_x=1, step_y=1) :
116 def __init__(self, width, height, df_image, access_type="Host", in_file_addr="./", out_file_addr="./", name="default") :
117 Reference.__init__(self, Type.IMAGE, name)
126 return Reference.__str__(self) +
' [ ' + str(self.
width) +
'x' + str(self.
height) +
':' + self.
df_image.name +
' ]' 148 def __init__(self, image, channel, name="default") :
149 df_image = DfImage.INVALID
150 if(channel == Channel.Y) :
151 if(image.df_image
in [ DfImage.NV12, DfImage.NV21, DfImage.IYUV, DfImage.YUV4]) :
152 df_image = DfImage.U8
153 if(channel == Channel.U
or channel == Channel.V ) :
154 if(fimage.df_image
in [ DfImage.IYUV, DfImage.YUV4]) :
155 df_image = DfImage.U8
156 Image.__init__(self, image.width, image.height, df_image, name)
178 def __init__(self, df_image, image_patch_address, name="default") :
179 Image.__init__(self, image_patch_address.dim_x, image_patch_address.dim_y, df_image, name)
Image patch object (OpenVX equivalent = vx_imagepatch_addressing_t)
Image object (OpenVX equivalent = vx_image, specifically returned from vxCreateImage) ...
def __init__(self, dim_x, dim_y, stride_x, stride_y, scale_x=1024, scale_y=1024, step_x=1, step_y=1)
Constructor used to create this object.
Image from channel object (OpenVX equivalent = vx_image, specifically returned from vxCreateImageFrom...
def __init__(self, image, channel, name="default")
Constructor used to create this object.
def __init__(self, df_image, image_patch_address, name="default")
Constructor used to create this object.
def __init__(self, width, height, df_image, access_type="Host", in_file_addr="./", out_file_addr="./", name="default")
Constructor used to create this object.
Image from handle object (OpenVX equivalent = vx_image, specifically returned from vxCreateImageFromH...