The OpenVX Specification
r28647
|
Implements the Gradient Phase Computation Kernel.
This kernel takes two gradients in VX_DF_IMAGE_S16
format and computes the angles for each pixel and stores this in a VX_DF_IMAGE_U8
image.
\[ \phi = \tan^{-1}{\frac{grad_y(x,y)}{grad_x(x,y)}} \]
Where \( \phi \) is then translated to \( 0 \le \phi < {2}\pi \). Each \( \phi \) value is then mapped to the range 0 to 255 inclusive.
Functions | |
vx_node | vxPhaseNode (vx_graph graph, vx_image grad_x, vx_image grad_y, vx_image orientation) |
[Graph] Creates a Phase node. More... | |
vx_status | vxuPhase (vx_context context, vx_image grad_x, vx_image grad_y, vx_image output) |
[Immediate] Invokes an immediate Phase. More... | |
[Graph] Creates a Phase node.
[in] | graph | The reference to the graph. |
[in] | grad_x | The input x image. This must be in VX_DF_IMAGE_S16 format. |
[in] | grad_y | The input y image. This must be in VX_DF_IMAGE_S16 format. |
[out] | orientation | The phase image. This is in VX_DF_IMAGE_U8 format. |
VX_KERNEL_PHASE
vx_node
. 0 | Node could not be created. |
* | Node handle. |
vx_status vxuPhase | ( | vx_context | context, |
vx_image | grad_x, | ||
vx_image | grad_y, | ||
vx_image | output | ||
) |
[Immediate] Invokes an immediate Phase.
[in] | context | The reference to the overall context. |
[in] | grad_x | The input x image. This must be in VX_DF_IMAGE_S16 format. |
[in] | grad_y | The input y image. This must be in VX_DF_IMAGE_S16 format. |
[out] | output | The phase image. This will be in VX_DF_IMAGE_U8 format. |
vx_status_e
enumeration. VX_SUCCESS | Success |
* | An error occurred. See vx_status_e . |