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

Functions

VX_API_ENTRY vx_node VX_API_CALL vxMultiplyNode (vx_graph graph, vx_image in1, vx_image in2, vx_scalar scale, vx_enum overflow_policy, vx_enum rounding_policy, vx_image out)
 [Graph] Creates an pixelwise-multiplication node.
 
VX_API_ENTRY vx_status VX_API_CALL vxuMultiply (vx_context context, vx_image in1, vx_image in2, vx_float32 scale, vx_enum overflow_policy, vx_enum rounding_policy, vx_image out)
 [Immediate] Performs elementwise multiplications on pixel values in the input images and a scale.
 

Detailed Description

Function Documentation

◆ vxMultiplyNode()

VX_API_ENTRY vx_node VX_API_CALL vxMultiplyNode ( vx_graph graph,
vx_image in1,
vx_image in2,
vx_scalar scale,
vx_enum overflow_policy,
vx_enum rounding_policy,
vx_image out )

#include <vx_nodes.h>

[Graph] Creates an pixelwise-multiplication node.

Parameters
[in]graphThe reference to the graph.
[in]in1An input image, VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16.
[in]in2An input image, VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16.
[in]scaleA non-negative VX_TYPE_FLOAT32 multiplied to each product before overflow handling.
[in]overflow_policyA VX_TYPE_ENUM of the vx_convert_policy_e enumeration.
[in]rounding_policyA VX_TYPE_ENUM of the vx_round_policy_e enumeration.
[out]outThe output image, a VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 image. Must have the same type and dimensions of the imput images.
Returns
vx_node.
Return values
vx_nodeA node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus

◆ vxuMultiply()

VX_API_ENTRY vx_status VX_API_CALL vxuMultiply ( vx_context context,
vx_image in1,
vx_image in2,
vx_float32 scale,
vx_enum overflow_policy,
vx_enum rounding_policy,
vx_image out )

#include <vxu.h>

[Immediate] Performs elementwise multiplications on pixel values in the input images and a scale.

Parameters
[in]contextThe reference to the overall context.
[in]in1A VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 input image.
[in]in2A VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 input image.
[in]scaleA non-negative VX_TYPE_FLOAT32 multiplied to each product before overflow handling.
[in]overflow_policyA vx_convert_policy_e enumeration.
[in]rounding_policyA vx_round_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.