The OpenVX Specification  a73e458

## Detailed Description

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 [R00095].

$\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 [R00096].

## Functions

[Graph] Creates a Phase node. More...

## ◆ vxPhaseNode()

 vx_node VX_API_CALL vxPhaseNode ( vx_graph graph, vx_image grad_x, vx_image grad_y, vx_image orientation )

[Graph] Creates a Phase node.

Parameters
 [in] graph The reference to the graph [R00166]. [in] grad_x The input x image. This must be in VX_DF_IMAGE_S16 format [R00167]. [in] grad_y The input y image. This must be in VX_DF_IMAGE_S16 format [R00168]. [out] orientation The phase image. This is in VX_DF_IMAGE_U8 format [R00169].
VX_KERNEL_PHASE
vx_node [R00170].
 vx_node A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus