The OpenVX Specification
r28647
|
Defines the Image Convolution Object interface.
Typedefs | |
typedef struct _vx_convolution * | vx_convolution |
The Convolution Object. A user-defined convolution kernel of MxM elements. | |
Enumerations | |
enum | vx_convolution_attribute_e { VX_CONVOLUTION_ATTRIBUTE_ROWS = ((( VX_ID_KHRONOS ) << 20) | ( VX_TYPE_CONVOLUTION << 8)) + 0x0, VX_CONVOLUTION_ATTRIBUTE_COLUMNS = ((( VX_ID_KHRONOS ) << 20) | ( VX_TYPE_CONVOLUTION << 8)) + 0x1, VX_CONVOLUTION_ATTRIBUTE_SCALE = ((( VX_ID_KHRONOS ) << 20) | ( VX_TYPE_CONVOLUTION << 8)) + 0x2, VX_CONVOLUTION_ATTRIBUTE_SIZE = ((( VX_ID_KHRONOS ) << 20) | ( VX_TYPE_CONVOLUTION << 8)) + 0x3 } |
The convolution attributes. More... | |
Functions | |
vx_status | vxAccessConvolutionCoefficients (vx_convolution conv, vx_int16 *array) |
Gets the convolution data (copy). More... | |
vx_status | vxCommitConvolutionCoefficients (vx_convolution conv, vx_int16 *array) |
Sets the convolution data (copy),. More... | |
vx_convolution | vxCreateConvolution (vx_context context, vx_size columns, vx_size rows) |
Creates a reference to a convolution matrix object. More... | |
vx_status | vxQueryConvolution (vx_convolution conv, vx_enum attribute, void *ptr, vx_size size) |
Queries an attribute on the convolution matrix object. More... | |
vx_status | vxReleaseConvolution (vx_convolution *conv) |
Releases the reference to a convolution matrix. The object may not be garbage collected until its total reference count is zero. More... | |
vx_status | vxSetConvolutionAttribute (vx_convolution conv, vx_enum attribute, void *ptr, vx_size size) |
Sets attributes on the convolution object. More... | |
The convolution attributes.
Enumerator | |
---|---|
VX_CONVOLUTION_ATTRIBUTE_ROWS |
The number of rows of the convolution matrix. Use a |
VX_CONVOLUTION_ATTRIBUTE_COLUMNS |
The number of columns of the convolution matrix. Use a |
VX_CONVOLUTION_ATTRIBUTE_SCALE |
The scale of the convolution matrix. Use a
|
VX_CONVOLUTION_ATTRIBUTE_SIZE |
The total size of the convolution matrix in bytes. Use a |
Definition at line 880 of file vx_types.h.
vx_convolution vxCreateConvolution | ( | vx_context | context, |
vx_size | columns, | ||
vx_size | rows | ||
) |
Creates a reference to a convolution matrix object.
[in] | context | The reference to the overall context. |
[in] | columns | The columns dimension of the convolution. Must be odd and greater than or equal to 3 and less than the value returned from VX_CONTEXT_ATTRIBUTE_CONVOLUTION_MAXIMUM_DIMENSION . |
[in] | rows | The rows dimension of the convolution. Must be odd and greater than or equal to 3 and less than the value returned from VX_CONTEXT_ATTRIBUTE_CONVOLUTION_MAXIMUM_DIMENSION . |
vx_convolution
vx_status vxReleaseConvolution | ( | vx_convolution * | conv | ) |
Releases the reference to a convolution matrix. The object may not be garbage collected until its total reference count is zero.
[in] | conv | The pointer to the convolution matrix to release. |
vx_status_e
enumeration. VX_SUCCESS | No errors. |
VX_ERROR_INVALID_REFERENCE | If graph is not a vx_graph . |
vx_status vxQueryConvolution | ( | vx_convolution | conv, |
vx_enum | attribute, | ||
void * | ptr, | ||
vx_size | size | ||
) |
Queries an attribute on the convolution matrix object.
[in] | conv | The convolution matrix object to set. |
[in] | attribute | The attribute to query. Use a vx_convolution_attribute_e enumeration. |
[out] | ptr | The location at which to store the resulting value. |
[in] | size | The size of the container to which ptr points. |
vx_status_e
enumeration. vx_status vxSetConvolutionAttribute | ( | vx_convolution | conv, |
vx_enum | attribute, | ||
void * | ptr, | ||
vx_size | size | ||
) |
Sets attributes on the convolution object.
[in] | conv | The coordinates object to set. |
[in] | attribute | The attribute to modify. Use a vx_convolution_attribute_e enumeration. |
[in] | ptr | The pointer to the value to which to set the attribute. |
[in] | size | The size of the data pointed to by ptr. |
vx_status_e
enumeration. vx_status vxAccessConvolutionCoefficients | ( | vx_convolution | conv, |
vx_int16 * | array | ||
) |
Gets the convolution data (copy).
[in] | conv | The reference to the convolution. |
[out] | array | The array to place the convolution. |
VX_CONVOLUTION_ATTRIBUTE_SIZE
to get the needed number of bytes of the array. vx_status_e
enumeration. vxCommitConvolutionCoefficients
vx_status vxCommitConvolutionCoefficients | ( | vx_convolution | conv, |
vx_int16 * | array | ||
) |
Sets the convolution data (copy),.
[in] | conv | The reference to the convolution. |
[out] | array | The array to read the convolution. |
vxQueryConvolution
and VX_CONVOLUTION_ATTRIBUTE_SIZE
to get the needed number of bytes of the array. vx_status_e
enumeration. vxAccessConvolutionCoefficients