CoreFlow 1.0.0
A modern orchestration and execution runtime
Loading...
Searching...
No Matches

Functions

VX_API_ENTRY vx_node VX_API_CALL vxSubtractNode (vx_graph graph, vx_image in1, vx_image in2, vx_enum policy, vx_image out)
 [Graph] Creates an arithmetic subtraction node.
 
VX_API_ENTRY vx_status VX_API_CALL vxuSubtract (vx_context context, vx_image in1, vx_image in2, vx_enum policy, vx_image out)
 [Immediate] Performs arithmetic subtraction on pixel values in the input images.
 

Detailed Description

Function Documentation

◆ vxSubtractNode()

VX_API_ENTRY vx_node VX_API_CALL vxSubtractNode ( vx_graph graph,
vx_image in1,
vx_image in2,
vx_enum policy,
vx_image out )

#include <vx_nodes.h>

[Graph] Creates an arithmetic subtraction node.

Parameters
[in]graphThe reference to the graph.
[in]in1An input image, VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16, the minuend.
[in]in2An input image, VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16, the subtrahend.
[in]policyA VX_TYPE_ENUM of the vx_convert_policy_e enumeration.
[out]outThe output image, a VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 image, which must have the same dimensions as the input images.
Returns
vx_node.
Return values
vx_nodeA node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus
Examples
bubble_pop.cpp, and skinToneDetector.cpp.

◆ vxuSubtract()

VX_API_ENTRY vx_status VX_API_CALL vxuSubtract ( vx_context context,
vx_image in1,
vx_image in2,
vx_enum policy,
vx_image out )

#include <vxu.h>

[Immediate] Performs arithmetic subtraction on pixel values in the input images.

Parameters
[in]contextThe reference to the overall context.
[in]in1A VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 input image, the minuend.
[in]in2A VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 input image, the subtrahend.
[in]policyA vx_convert_policy_e enumeration.
[out]outThe output image in VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 format.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.