CoreFlow 1.0.0
A modern orchestration and execution runtime
|
Enumerations | |
enum | vx_comp_metric_e { VX_COMPARE_HAMMING = VX_ENUM_BASE( VX_ID_KHRONOS, VX_ENUM_COMP_METRIC ) + 0x0 , VX_COMPARE_L1 = VX_ENUM_BASE( VX_ID_KHRONOS, VX_ENUM_COMP_METRIC ) + 0x1 , VX_COMPARE_L2 = VX_ENUM_BASE( VX_ID_KHRONOS, VX_ENUM_COMP_METRIC ) + 0x2 , VX_COMPARE_CCORR = VX_ENUM_BASE( VX_ID_KHRONOS, VX_ENUM_COMP_METRIC ) + 0x3 , VX_COMPARE_L2_NORM = VX_ENUM_BASE( VX_ID_KHRONOS, VX_ENUM_COMP_METRIC ) + 0x4 , VX_COMPARE_CCORR_NORM = VX_ENUM_BASE( VX_ID_KHRONOS, VX_ENUM_COMP_METRIC ) + 0x5 } |
comparing metrics. More... | |
Functions | |
VX_API_ENTRY vx_node VX_API_CALL | vxMatchTemplateNode (vx_graph graph, vx_image src, vx_image templateImage, vx_enum matchingMethod, vx_image output) |
[Graph] The Node Compares an image template against overlapped image regions. | |
VX_API_ENTRY vx_status VX_API_CALL | vxuMatchTemplate (vx_context context, vx_image src, vx_image templateImage, vx_enum matchingMethod, vx_image output) |
[Immediate] The function compares an image template against overlapped image regions. | |
enum vx_comp_metric_e |
#include <vx_types.h>
comparing metrics.
In all the equations below w and h are width and height of the template image respectively. \( R \) is the compare map. \( T \) is the template image. \( I \) is the image on which the template is searched.
VX_API_ENTRY vx_node VX_API_CALL vxMatchTemplateNode | ( | vx_graph | graph, |
vx_image | src, | ||
vx_image | templateImage, | ||
vx_enum | matchingMethod, | ||
vx_image | output ) |
#include <vx_nodes.h>
[Graph] The Node Compares an image template against overlapped image regions.
The detailed equation to the matching can be found in vx_comp_metric_e
. The output of the template matching node is a comparison map as described in vx_comp_metric_e
. The Node have a limitation on the template image size (width*height). It should not be larger then 65535. If the valid region of the template image is smaller than the entire template image, the result in the destination image is implementation-dependent.
[in] | graph | The reference to the graph. |
[in] | src | The input image of type VX_DF_IMAGE_U8 . |
[in] | templateImage | Searched template of type VX_DF_IMAGE_U8 . |
[in] | matchingMethod | attribute specifying the comparison method vx_comp_metric_e . This function support only VX_COMPARE_CCORR_NORM and VX_COMPARE_L2 . |
[out] | output | Map of comparison results. The output is an image of type VX_DF_IMAGE_S16 |
vx_node
. vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
VX_API_ENTRY vx_status VX_API_CALL vxuMatchTemplate | ( | vx_context | context, |
vx_image | src, | ||
vx_image | templateImage, | ||
vx_enum | matchingMethod, | ||
vx_image | output ) |
#include <vxu.h>
[Immediate] The function compares an image template against overlapped image regions.
The detailed equation to the matching can be found in vx_comp_metric_e
. The output of the template matching node is a comparison map as described in vx_comp_metric_e
. The Node have a limitation on the template image size (width*height). It should not be larger then 65535. If the valid region of the template image is smaller than the entire template image, the result in the destination image is implementation-dependent.
[in] | context | The reference to the overall context. |
[in] | src | The input image of type VX_DF_IMAGE_U8 . |
[in] | templateImage | Searched template of type VX_DF_IMAGE_U8 . |
[in] | matchingMethod | attribute specifying the comparison method vx_comp_metric_e . This function support only VX_COMPARE_CCORR_NORM and VX_COMPARE_L2 . |
[out] | output | Map of comparison results. The output is an image of type VX_DF_IMAGE_S16 |
vx_status_e
enumeration. VX_SUCCESS | Success |
* | An error occurred. See vx_status_e . |