CoreFlow 1.0.0
A modern orchestration and execution runtime
|
The Public Pyramid API. More...
Macros | |
#define | VX_SCALE_PYRAMID_HALF (0.5f) |
Use to indicate a half-scale pyramid. | |
#define | VX_SCALE_PYRAMID_ORB ((vx_float32)0.8408964f) |
Use to indicate a ORB scaled pyramid whose scaling factor is \( \frac{1}{\root 4 \of {2}} \). | |
Typedefs | |
typedef struct Pyramid * | vx_pyramid |
The Image Pyramid object. A set of scaled images. | |
Enumerations | |
enum | vx_pyramid_attribute_e { VX_PYRAMID_LEVELS = VX_ATTRIBUTE_BASE(VX_ID_KHRONOS, VX_TYPE_PYRAMID) + 0x0 , VX_PYRAMID_SCALE = VX_ATTRIBUTE_BASE(VX_ID_KHRONOS, VX_TYPE_PYRAMID) + 0x1 , VX_PYRAMID_WIDTH = VX_ATTRIBUTE_BASE(VX_ID_KHRONOS, VX_TYPE_PYRAMID) + 0x2 , VX_PYRAMID_HEIGHT = VX_ATTRIBUTE_BASE(VX_ID_KHRONOS, VX_TYPE_PYRAMID) + 0x3 , VX_PYRAMID_FORMAT = VX_ATTRIBUTE_BASE(VX_ID_KHRONOS, VX_TYPE_PYRAMID) + 0x4 } |
The pyramid object attributes. More... | |
Functions | |
VX_API_ENTRY vx_pyramid VX_API_CALL | vxCreatePyramid (vx_context context, vx_size levels, vx_float32 scale, vx_uint32 width, vx_uint32 height, vx_df_image format) |
Creates a reference to a pyramid object of the supplied number of levels. | |
VX_API_ENTRY vx_pyramid VX_API_CALL | vxCreateVirtualPyramid (vx_graph graph, vx_size levels, vx_float32 scale, vx_uint32 width, vx_uint32 height, vx_df_image format) |
Creates a reference to a virtual pyramid object of the supplied number of levels. | |
VX_API_ENTRY vx_status VX_API_CALL | vxReleasePyramid (vx_pyramid *pyr) |
Releases a reference to a pyramid object. The object may not be garbage collected until its total reference count is zero. | |
VX_API_ENTRY vx_status VX_API_CALL | vxQueryPyramid (vx_pyramid pyr, vx_enum attribute, void *ptr, vx_size size) |
Queries an attribute from an image pyramid. | |
VX_API_ENTRY vx_image VX_API_CALL | vxGetPyramidLevel (vx_pyramid pyr, vx_uint32 index) |
Retrieves a level of the pyramid as a vx_image , which can be used elsewhere in OpenVX. A call to vxReleaseImage is necessary to release an image for each call of vxGetPyramidLevel. | |
The Public Pyramid API.
#define VX_SCALE_PYRAMID_HALF (0.5f) |
#include <vx_types.h>
Use to indicate a half-scale pyramid.
#define VX_SCALE_PYRAMID_ORB ((vx_float32)0.8408964f) |
#include <vx_types.h>
Use to indicate a ORB scaled pyramid whose scaling factor is \( \frac{1}{\root 4 \of {2}} \).
typedef struct Pyramid* vx_pyramid |
#include <vx_types.h>
The Image Pyramid object. A set of scaled images.
#include <vx_types.h>
The pyramid object attributes.
Enumerator | |
---|---|
VX_PYRAMID_LEVELS | The number of levels of the pyramid. Read-only. Use a |
VX_PYRAMID_SCALE | The scale factor between each level of the pyramid. Read-only. Use a |
VX_PYRAMID_WIDTH | The width of the 0th image in pixels. Read-only. Use a |
VX_PYRAMID_HEIGHT | The height of the 0th image in pixels. Read-only. Use a |
VX_PYRAMID_FORMAT | The |
VX_API_ENTRY vx_pyramid VX_API_CALL vxCreatePyramid | ( | vx_context | context, |
vx_size | levels, | ||
vx_float32 | scale, | ||
vx_uint32 | width, | ||
vx_uint32 | height, | ||
vx_df_image | format ) |
#include <vx_api.h>
Creates a reference to a pyramid object of the supplied number of levels.
[in] | context | The reference to the overall context. |
[in] | levels | The number of levels desired. This is required to be a non-zero value. |
[in] | scale | Used to indicate the scale between pyramid levels. This is required to be a non-zero positive value. VX_SCALE_PYRAMID_HALF and VX_SCALE_PYRAMID_ORB must be supported. |
[in] | width | The width of the 0th level image in pixels. |
[in] | height | The height of the 0th level image in pixels. |
[in] | format | The format of all images in the pyramid. NV12, NV21, IYUV, UYVY and YUYV formats are not supported. |
vx_pyramid
containing the sub-images. Any possible errors preventing a successful creation should be checked using vxGetStatus
. VX_API_ENTRY vx_pyramid VX_API_CALL vxCreateVirtualPyramid | ( | vx_graph | graph, |
vx_size | levels, | ||
vx_float32 | scale, | ||
vx_uint32 | width, | ||
vx_uint32 | height, | ||
vx_df_image | format ) |
#include <vx_api.h>
Creates a reference to a virtual pyramid object of the supplied number of levels.
Virtual Pyramids can be used to connect Nodes together when the contents of the pyramids will not be accessed by the user of the API. All of the following constructions are valid:
[in] | graph | The reference to the parent graph. |
[in] | levels | The number of levels desired. This is required to be a non-zero value. |
[in] | scale | Used to indicate the scale between pyramid levels. This is required to be a non-zero positive value. VX_SCALE_PYRAMID_HALF and VX_SCALE_PYRAMID_ORB must be supported. |
[in] | width | The width of the 0th level image in pixels. This may be set to zero to indicate to the interface that the value is unspecified. |
[in] | height | The height of the 0th level image in pixels. This may be set to zero to indicate to the interface that the value is unspecified. |
[in] | format | The format of all images in the pyramid. This may be set to VX_DF_IMAGE_VIRT to indicate that the format is unspecified. |
vx_pyramid
. Any possible errors preventing a successful creation should be checked using vxGetStatus
. vxGetPyramidLevel
behave as Virtual Images and cause vxMapImagePatch
to return errors. VX_API_ENTRY vx_image VX_API_CALL vxGetPyramidLevel | ( | vx_pyramid | pyr, |
vx_uint32 | index ) |
#include <vx_api.h>
Retrieves a level of the pyramid as a vx_image
, which can be used elsewhere in OpenVX. A call to vxReleaseImage is necessary to release an image for each call of vxGetPyramidLevel.
[in] | pyr | The pyramid object. |
[in] | index | The index of the level, such that index is less than levels. |
vx_image
reference. Any possible errors preventing a successful function completion should be checked using vxGetStatus
. VX_API_ENTRY vx_status VX_API_CALL vxQueryPyramid | ( | vx_pyramid | pyr, |
vx_enum | attribute, | ||
void * | ptr, | ||
vx_size | size ) |
#include <vx_api.h>
Queries an attribute from an image pyramid.
[in] | pyr | The pyramid to query. |
[in] | attribute | The attribute for which to query. Use a vx_pyramid_attribute_e enumeration. |
[out] | ptr | The location at which to store the resulting value. |
[in] | size | The size in bytes of the container to which ptr points. |
vx_status_e
enumeration. VX_SUCCESS | No errors; any other value indicates failure. |
VX_ERROR_INVALID_REFERENCE | pyr is not a valid vx_pyramid reference. |
VX_API_ENTRY vx_status VX_API_CALL vxReleasePyramid | ( | vx_pyramid * | pyr | ) |
#include <vx_api.h>
Releases a reference to a pyramid object. The object may not be garbage collected until its total reference count is zero.
[in] | pyr | The pointer to the pyramid to release. |
vx_status_e
enumeration. VX_SUCCESS | No errors; any other value indicates failure. |
VX_ERROR_INVALID_REFERENCE | pyr is not a valid vx_pyramid reference. |