CoreFlow 1.0.0
A modern orchestration and execution runtime
Loading...
Searching...
No Matches
Kernel: Canny Edge Detector

Enumerations

enum  vx_norm_type_e {
  VX_NORM_L1 = VX_ENUM_BASE(VX_ID_KHRONOS, VX_ENUM_NORM_TYPE) + 0x0 ,
  VX_NORM_L2 = VX_ENUM_BASE(VX_ID_KHRONOS, VX_ENUM_NORM_TYPE) + 0x1
}
 A normalization type. More...
 

Functions

VX_API_ENTRY vx_node VX_API_CALL vxCannyEdgeDetectorNode (vx_graph graph, vx_image input, vx_threshold hyst, vx_int32 gradient_size, vx_enum norm_type, vx_image output)
 [Graph] Creates a Canny Edge Detection Node.
 
VX_API_ENTRY vx_status VX_API_CALL vxuCannyEdgeDetector (vx_context context, vx_image input, vx_threshold hyst, vx_int32 gradient_size, vx_enum norm_type, vx_image output)
 [Immediate] Computes Canny Edges on the input image into the output image.
 

Detailed Description

Enumeration Type Documentation

◆ vx_norm_type_e

#include <vx_types.h>

A normalization type.

See also
Kernel: Canny Edge Detector
Enumerator
VX_NORM_L1 

The L1 normalization.

VX_NORM_L2 

The L2 normalization.

Function Documentation

◆ vxCannyEdgeDetectorNode()

VX_API_ENTRY vx_node VX_API_CALL vxCannyEdgeDetectorNode ( vx_graph graph,
vx_image input,
vx_threshold hyst,
vx_int32 gradient_size,
vx_enum norm_type,
vx_image output )

#include <vx_nodes.h>

[Graph] Creates a Canny Edge Detection Node.

Parameters
[in]graphThe reference to the graph.
[in]inputThe input VX_DF_IMAGE_U8 image.
[in]hystThe double threshold for hysteresis. The VX_THRESHOLD_INPUT_FORMAT shall be either VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16. The VX_THRESHOLD_OUTPUT_FORMAT is ignored.
[in]gradient_sizeThe size of the Sobel filter window, must support at least 3, 5, and 7.
[in]norm_typeA flag indicating the norm used to compute the gradient, VX_NORM_L1 or VX_NORM_L2.
[out]outputThe binary output image in VX_DF_IMAGE_U1 or VX_DF_IMAGE_U8 format with values either 0 and 1 (VX_DF_IMAGE_U1), or 0 and 255 (VX_DF_IMAGE_U8).
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 canny.cpp.

◆ vxuCannyEdgeDetector()

VX_API_ENTRY vx_status VX_API_CALL vxuCannyEdgeDetector ( vx_context context,
vx_image input,
vx_threshold hyst,
vx_int32 gradient_size,
vx_enum norm_type,
vx_image output )

#include <vxu.h>

[Immediate] Computes Canny Edges on the input image into the output image.

Parameters
[in]contextThe reference to the overall context.
[in]inputThe input VX_DF_IMAGE_U8 image.
[in]hystThe double threshold for hysteresis. The VX_THRESHOLD_INPUT_FORMAT shall be either VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16. The VX_THRESHOLD_OUTPUT_FORMAT is ignored.
[in]gradient_sizeThe size of the Sobel filter window, must support at least 3, 5 and 7.
[in]norm_typeA flag indicating the norm used to compute the gradient, VX_NORM_L1 or VX_NORM_L2.
[out]outputThe binary output image in VX_DF_IMAGE_U1 or VX_DF_IMAGE_U8 format with values either 0 and 1 (VX_DF_IMAGE_U1), or 0 and 255 (VX_DF_IMAGE_U8).
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.