76 WIDTH = (
'w',
'vx_uint32')
78 HEIGHT = (
'h',
'vx_uint32')
80 FORMAT = (
'fmt',
'vx_df_image')
82 PLANES = (
'planes',
'vx_size')
84 SPACE = (
'space',
'vx_enum')
86 RANGE = (
'range',
'vx_enum')
88 SIZE = (
'size',
'vx_size')
90 MEMORY_TYPE = (
'memory_type',
'vx_enum')
92 def vx_enum_name(attr) :
93 return "VX_IMAGE_" + attr.name
109 LEVELS = (
'levels',
'vx_size')
111 SCALE = (
'scale',
'vx_float32')
113 WIDTH = (
'w',
'vx_uint32')
115 HEIGHT = (
'h',
'vx_uint32')
117 FORMAT = (
'fmt',
'vx_df_image')
119 def vx_enum_name(attr) :
120 return "VX_PYRAMID_" + attr.name
136 ITEMTYPE = (
'item_type',
'vx_enum')
138 NUMITEMS = (
'num_items',
'vx_size')
140 CAPACITY = (
'capacity',
'vx_size')
142 ITEMSIZE = (
'item_size',
'vx_size')
144 def vx_enum_name(attr) :
145 return "VX_ARRAY_" + attr.name
160 TYPE = (
'scalar_type',
'vx_enum')
162 def vx_enum_name(attr) :
163 return "VX_SCALAR_" + attr.name
179 ROWS = (
'row',
'vx_size')
181 COLUMNS = (
'col',
'vx_size')
183 SCALE = (
'scale',
'vx_uint32')
185 SIZE = (
'size',
'vx_size')
187 def vx_enum_name(attr) :
188 return "VX_CONVOLUTION_" + attr.name
191 return Type.CONVOLUTION
204 TYPE = (
'type',
'vx_enum')
206 ROWS = (
'h',
'vx_size')
208 COLUMNS = (
'w',
'vx_size')
210 SIZE = (
'size',
'vx_size')
212 ORIGIN = (
'origin',
'vx_coordinates2d_t')
214 PATTERN = (
'pattern',
'vx_enum')
216 def vx_enum_name(attr) :
217 return "VX_MATRIX_" + attr.name
233 TYPE = (
'type',
'vx_enum')
235 COUNT = (
'count',
'vx_size')
237 SIZE = (
'size',
'vx_size')
239 OFFSET = (
'offset',
'vx_uint32')
241 def vx_enum_name(attr) :
242 return "VX_LUT_" + attr.name
258 DIMENSIONS = (
'dims',
'vx_size')
260 OFFSET = (
'offset',
'vx_int32')
262 RANGE = (
'range',
'vx_uint32')
264 BINS = (
'bins',
'vx_size')
266 WINDOW = (
'win',
'vx_uint32')
268 SIZE = (
'size',
'vx_size')
270 def vx_enum_name(attr) :
271 return "VX_DISTRIBUTION_" + attr.name
274 return Type.DISTRIBUTION
287 TYPE = (
'threshold_type',
'vx_enum')
289 THRESHOLD_VALUE = (
'value',
'vx_int32')
291 THRESHOLD_LOWER = (
'lower',
'vx_int32')
293 THRESHOLD_UPPER = (
'upper',
'vx_int32')
295 TRUE_VALUE = (
'true_value',
'vx_int32')
297 FALSE_VALUE = (
'false_value',
'vx_int32')
299 DATA_TYPE = (
'threshold_data_type',
'vx_enum')
301 def vx_enum_name(attr) :
302 return "VX_THRESHOLD_" + attr.name
305 return Type.THRESHOLD
318 SOURCE_WIDTH = (
'src_w',
'vx_uint32')
320 SOURCE_HEIGHT = (
'src_h',
'vx_uint32')
322 DESTINATION_WIDTH = (
'dst_w',
'vx_uint32')
324 DESTINATION_HEIGHT = (
'dst_h',
'vx_uint32')
326 def vx_enum_name(attr) :
327 return "VX_REMAP_" + attr.name
343 ITEMTYPE = (
'type',
'vx_enum')
345 NUMITEMS = (
'num_items',
'vx_size')
347 def vx_enum_name(attr) :
348 return "VX_OBJECT_ARRAY_" + attr.name
351 return Type.OBJECT_ARRAY
364 NAME = (
'name',
'vx_char')
366 SIZE = (
'size',
'vx_size')
368 def vx_enum_name(attr) :
369 return "VX_USER_DATA_OBJECT_" + attr.name
372 return Type.USER_DATA_OBJECT
385 WIDTH = (
'w',
'vx_uint32')
387 HEIGHT = (
'h',
'vx_uint32')
389 MUM_EXPOSURES = (
'num_exposures',
'vx_uint32')
391 LINE_INTERLEAVED = (
'line_interleaved',
'vx_bool')
393 FORMAT = (
'format',
'tivx_raw_image_format_t')
395 META_HEIGHT_BEFORE = (
'meta_height_before',
'vx_uint32')
397 META_HEIGHT_AFTER = (
'meta_height_after',
'vx_uint32')
399 def vx_enum_name(attr) :
400 return "TIVX_RAW_IMAGE_" + attr.name
403 return Type.RAW_IMAGE
420 NUMBER_OF_DIMS = (
'number_of_dims',
'vx_size')
422 DIMS = (
'dims',
'vx_size')
424 DATA_TYPE = (
'data_type',
'vx_enum')
426 FIXED_POINT_POSITION = (
'fixed_point_position',
'vx_int8')
428 SCALING_DIVISOR = (
'scaling_divisor',
'vx_int8')
430 SCALING_DIVISOR_FIXED_POINT_POSITION = (
'scaling_divisor_fixed_point_position',
'vx_int8')
432 def vx_enum_name(attr) :
433 return "VX_TENSOR_" + attr.name
448 Image = ImageAttribute
449 Pyramid = PyramidAttribute
450 Array = ArrayAttribute
451 Scalar = ScalarAttribute
452 Convolution = ConvolutionAttribute
453 Matrix = MatrixAttribute
455 Distribution = DistributionAttribute
456 Threshold = ThresholdAttribute
457 Remap = RemapAttribute
458 ObjectArray = ObjectArrayAttribute
459 UserDataObject = UserDataObjectAttribute
460 RawImage = RawImageAttribute
461 Tensor = TensorAttribute
463 def from_type(type) :
464 if type == Type.IMAGE :
465 return Attribute.Image
466 if type == Type.PYRAMID :
467 return Attribute.Pyramid
468 if type == Type.ARRAY :
469 return Attribute.Array
470 if type == Type.SCALAR :
471 return Attribute.Scalar
472 if type == Type.CONVOLUTION :
473 return Attribute.Convolution
474 if type == Type.MATRIX :
475 return Attribute.Matrix
476 if type == Type.LUT :
478 if type == Type.DISTRIBUTION :
479 return Attribute.Distribution
480 if type == Type.THRESHOLD :
481 return Attribute.Threshold
482 if type == Type.REMAP :
483 return Attribute.Remap
484 if type == Type.OBJECT_ARRAY :
485 return Attribute.ObjectArray
486 if type == Type.USER_DATA_OBJECT :
487 return Attribute.UserDataObject
488 if type == Type.RAW_IMAGE :
489 return Attribute.RawImage
490 if type == Type.TENSOR :
491 return Attribute.Tensor
Object/Data type (OpenVX equivalent = vx_object_array_attribute_e)
Object/Data type (OpenVX equivalent = vx_matrix_attribute_e)
Object/Data type (OpenVX equivalent = vx_array_attribute_e)
Object/Data type (OpenVX equivalent = vx_scalar_attribute_e)
Object/Data type (OpenVX equivalent = vx_remap_attribute_e)
Object/Data type (OpenVX equivalent = vx_lut_attribute_e)
Object/Data type (OpenVX equivalent = vx_convolution_attribute_e)
Object/Data type (OpenVX equivalent = vx_user_data_object_attribute_e)
Object/Data type (OpenVX equivalent = vx_pyramid_attribute_e)
Object/Data type (OpenVX equivalent = tivx_raw_image_attribute_e)
Object/Data type (OpenVX equivalent = vx_distribution_attribute_e)
Object/Data type (OpenVX equivalent = vx_image_attribute_e)
Object/Data type (OpenVX equivalent = vx_threshold_attribute_e)
Object/Data type (OpenVX equivalent = vx_tensor_attribute_e)
Object/Data type (OpenVX equivalent = none ...