CoreFlow 1.0.0
A modern orchestration and execution runtime
Loading...
Searching...
No Matches
Kernel: Scale Image

Functions

VX_API_ENTRY vx_node VX_API_CALL vxScaleImageNode (vx_graph graph, vx_image src, vx_image dst, vx_enum type)
 [Graph] Creates a Scale Image Node.
 
VX_API_ENTRY vx_node VX_API_CALL vxHalfScaleGaussianNode (vx_graph graph, vx_image input, vx_image output, vx_int32 kernel_size)
 [Graph] Performs a Gaussian Blur on an image then half-scales it. The interpolation mode used is nearest-neighbor.
 
VX_API_ENTRY vx_status VX_API_CALL vxuScaleImage (vx_context context, vx_image src, vx_image dst, vx_enum type)
 [Immediate] Scales an input image to an output image.
 
VX_API_ENTRY vx_status VX_API_CALL vxuHalfScaleGaussian (vx_context context, vx_image input, vx_image output, vx_int32 kernel_size)
 [Immediate] Performs a Gaussian Blur on an image then half-scales it. The interpolation mode used is nearest-neighbor.
 

Detailed Description

Function Documentation

◆ vxHalfScaleGaussianNode()

VX_API_ENTRY vx_node VX_API_CALL vxHalfScaleGaussianNode ( vx_graph graph,
vx_image input,
vx_image output,
vx_int32 kernel_size )

#include <vx_nodes.h>

[Graph] Performs a Gaussian Blur on an image then half-scales it. The interpolation mode used is nearest-neighbor.

The output image size is determined by:

\[W_{output} = \frac{W_{input} + 1}{2} \\ , H_{output} = \frac{H_{input} + 1}{2} \]

Parameters
[in]graphThe reference to the graph.
[in]inputThe input VX_DF_IMAGE_U8 image.
[out]outputThe output VX_DF_IMAGE_U8 image.
[in]kernel_sizeThe input size of the Gaussian filter. Supported values are 1, 3 and 5.
Returns
vx_node.
Return values
vx_nodeA node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus

◆ vxScaleImageNode()

VX_API_ENTRY vx_node VX_API_CALL vxScaleImageNode ( vx_graph graph,
vx_image src,
vx_image dst,
vx_enum type )

#include <vx_nodes.h>

[Graph] Creates a Scale Image Node.

Parameters
[in]graphThe reference to the graph.
[in]srcThe source image of type VX_DF_IMAGE_U8 or VX_DF_IMAGE_U1.
[out]dstThe destination image of type VX_DF_IMAGE_U8 or VX_DF_IMAGE_U1. The output type must be the same as that of the input image.
[in]typeThe interpolation type to use.
See also
vx_interpolation_type_e.
Note
The destination image must have a defined size and format. The border modes VX_NODE_BORDER value VX_BORDER_UNDEFINED, VX_BORDER_REPLICATE and VX_BORDER_CONSTANT are supported.
Returns
vx_node.
Return values
vx_nodeA node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus

◆ vxuHalfScaleGaussian()

VX_API_ENTRY vx_status VX_API_CALL vxuHalfScaleGaussian ( vx_context context,
vx_image input,
vx_image output,
vx_int32 kernel_size )

#include <vxu.h>

[Immediate] Performs a Gaussian Blur on an image then half-scales it. The interpolation mode used is nearest-neighbor.

Parameters
[in]contextThe reference to the overall context.
[in]inputThe input VX_DF_IMAGE_U8 image.
[out]outputThe output VX_DF_IMAGE_U8 image.
[in]kernel_sizeThe input size of the Gaussian filter. Supported values are 1, 3 and 5.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.

◆ vxuScaleImage()

VX_API_ENTRY vx_status VX_API_CALL vxuScaleImage ( vx_context context,
vx_image src,
vx_image dst,
vx_enum type )

#include <vxu.h>

[Immediate] Scales an input image to an output image.

Parameters
[in]contextThe reference to the overall context.
[in]srcThe source image of type VX_DF_IMAGE_U8 or VX_DF_IMAGE_U1.
[out]dstThe destination image of type VX_DF_IMAGE_U8 or VX_DF_IMAGE_U1. Must be of the same format as the input image.
[in]typeThe interpolation type.
See also
vx_interpolation_type_e.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.