![]() |
The OpenVX Specification
r31169
|
Thresholds an input image and produces an output Boolean image.
In VX_THRESHOLD_TYPE_BINARY, the output is determined by:
\[ dst(x,y) = \begin{cases} 255 & \text{if } src(x,y) > threshold \cr 0 & \text{otherwise } \end{cases} \]
In VX_THRESHOLD_TYPE_RANGE, the output is determined by:
\[ dst(x,y) = \begin{cases} 0 & \text{if } src(x,y) > upper \cr 0 & \text{if } src(x,y) < lower \cr 255 & \text{otherwise } \end{cases} \]
Functions | |
| vx_node VX_API_CALL | vxThresholdNode (vx_graph graph, vx_image input, vx_threshold thresh, vx_image output) |
| [Graph] Creates a Threshold node. More... | |
| vx_status VX_API_CALL | vxuThreshold (vx_context context, vx_image input, vx_threshold thresh, vx_image output) |
[Immediate] Threshold's an input image and produces a VX_DF_IMAGE_U8 * boolean image. More... | |
| vx_node VX_API_CALL vxThresholdNode | ( | vx_graph | graph, |
| vx_image | input, | ||
| vx_threshold | thresh, | ||
| vx_image | output | ||
| ) |
[Graph] Creates a Threshold node.
| [in] | graph | The reference to the graph. |
| [in] | input | The input image. VX_DF_IMAGE_U8 is supported. |
| [in] | thresh | The thresholding object that defines the parameters of the operation. |
| [out] | output | The output Boolean image. Values are either 0 or 255. |
vx_node. | vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
| vx_status VX_API_CALL vxuThreshold | ( | vx_context | context, |
| vx_image | input, | ||
| vx_threshold | thresh, | ||
| vx_image | output | ||
| ) |
[Immediate] Threshold's an input image and produces a VX_DF_IMAGE_U8 * boolean image.
| [in] | context | The reference to the overall context. |
| [in] | input | The input image. VX_DF_IMAGE_U8 is supported. |
| [in] | thresh | The thresholding object that defines the parameters of the operation. |
| [out] | output | The output Boolean image. Values are either 0 or 255. |
vx_status_e enumeration. | VX_SUCCESS | Success |
| * | An error occurred. See vx_status_e. |