develop/amd_openvx_extensions/amd_opencv/include/vx_ext_opencv.h File Reference

develop/amd_openvx_extensions/amd_opencv/include/vx_ext_opencv.h File Reference#

MIVisionX: develop/amd_openvx_extensions/amd_opencv/include/vx_ext_opencv.h File Reference
vx_ext_opencv.h File Reference

The AMD OpenVX OpenCV Nodes Extension Library. More...

#include "VX/vx.h"
#include <VX/vx_compatibility.h>
#include "opencv2/opencv.hpp"

Go to the source code of this file.

Macros

#define dimof(x)   (sizeof(x) / sizeof(x[0]))
 A macro to get the number of elements in an array. More...
 
#define SHARED_PUBLIC   __attribute__((visibility("default")))
 A macro to specify public visibility for shared library symbols.
 

Functions

vx_node vxCreateNodeByStructure (vx_graph graph, vx_enum kernelenum, vx_reference params[], vx_uint32 num)
 Creates a node in a graph using a predefined kernel structure. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_blur (vx_graph graph, vx_image input, vx_image output, vx_uint32 kwidth, vx_uint32 kheight, vx_int32 Anchor_X, vx_int32 Anchor_Y, vx_int32 Bordertype)
 [Graph] Creates a OpenCV blur function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_boxFilter (vx_graph graph, vx_image input, vx_image output, vx_int32 ddepth, vx_uint32 kwidth, vx_uint32 kheight, vx_int32 Anchor_X, vx_int32 Anchor_Y, vx_bool Normalized, vx_int32 Bordertype)
 [Graph] Creates a OpenCV boxFilter function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_gaussianBlur (vx_graph graph, vx_image input, vx_image output, vx_uint32 kwidth, vx_uint32 kheight, vx_float32 sigmaX, vx_float32 sigmaY, vx_int32 border_mode)
 [Graph] Creates a OpenCV GaussianBlur function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_medianBlur (vx_graph graph, vx_image input, vx_image output, vx_uint32 ksize)
 [Graph] Creates a OpenCV medianBlur function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_filter2D (vx_graph graph, vx_image input, vx_image output, vx_int32 ddepth, vx_matrix Kernel, vx_int32 Anchor_X, vx_int32 Anchor_Y, vx_float32 delta, vx_int32 border)
 [Graph] Creates a OpenCV filter2D function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_sepFilter2D (vx_graph graph, vx_image input, vx_image output, vx_int32 ddepth, vx_matrix KernelX, vx_matrix KernelY, vx_int32 Anchor_X, vx_int32 Anchor_Y, vx_float32 delta, vx_int32 border)
 [Graph] Creates a OpenCV sepFilter2D function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_bilateralFilter (vx_graph graph, vx_image input, vx_image output, vx_uint32 d, vx_float32 Sigma_Color, vx_float32 Sigma_Space, vx_int32 border_mode)
 [Graph] Creates a OpenCV BilateralFilter function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_briskCompute (vx_graph graph, vx_image input, vx_image mask, vx_array output_kp, vx_array output_des, vx_int32 thresh, vx_int32 octaves, vx_float32 patternScale)
 [Graph] Creates a OpenCV BRISK compute node to detect keypoints and optionally compute descriptors. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_briskDetect (vx_graph graph, vx_image input, vx_image mask, vx_array output_kp, vx_int32 thresh, vx_int32 octaves, vx_float32 patternScale)
 [Graph] Creates a OpenCV BRISK detector node to detect keypoints and optionally compute descriptors. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_fast (vx_graph graph, vx_image input, vx_array output_kp, vx_int32 threshold, vx_bool nonmaxSuppression)
 [Graph] Creates a OpenCV FAST feature detector node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_goodFeaturesToTrack (vx_graph graph, vx_image input, vx_array output_kp, vx_int32 maxCorners, vx_float32 qualityLevel, vx_float32 minDistance, vx_image mask, vx_int32 blockSize, vx_bool useHarrisDetector, vx_float32 k)
 [Graph] Creates a OpenCV GoodFeaturesToTrack detector node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_mserDetect (vx_graph graph, vx_image input, vx_array output_kp, vx_image mask, vx_int32 delta, vx_int32 min_area, vx_int32 max_area, vx_float32 max_variation, vx_float32 min_diversity, vx_int32 max_evolution, vx_float32 area_threshold, vx_float32 min_margin, vx_int32 edge_blur_size)
 [Graph] Creates a OpenCV MSER feature detector node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_orbCompute (vx_graph graph, vx_image input, vx_image mask, vx_array output_kp, vx_array output_des, vx_int32 nfeatures, vx_float32 scaleFactor, vx_int32 nlevels, vx_int32 edgeThreshold, vx_int32 firstLevel, vx_int32 WTA_K, vx_int32 scoreType, vx_int32 patchSize)
 [Graph] Creates a OpenCV ORB Compute node to detect keypoints and optionally compute descriptors. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_orbDetect (vx_graph graph, vx_image input, vx_image mask, vx_array output_kp, vx_int32 nfeatures, vx_float32 scaleFactor, vx_int32 nlevels, vx_int32 edgeThreshold, vx_int32 firstLevel, vx_int32 WTA_K, vx_int32 scoreType, vx_int32 patchSize)
 [Graph] Creates a OpenCV ORB detector node to detect keypoints and optionally compute descriptors. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_siftCompute (vx_graph graph, vx_image input, vx_image mask, vx_array output_kp, vx_array output_des, vx_int32 nfeatures, vx_int32 nOctaveLayers, vx_float32 contrastThreshold, vx_float32 edgeThreshold, vx_float32 sigma)
 [Graph] Creates a OpenCV SIFT Compute node to compute descriptor from specified keypoints. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_siftDetect (vx_graph graph, vx_image input, vx_image mask, vx_array output_kp, vx_int32 nfeatures, vx_int32 nOctaveLayers, vx_float32 contrastThreshold, vx_float32 edgeThreshold, vx_float32 sigma)
 [Graph] Creates a OpenCV SIFT detector node to detect keypoints and optionally compute descriptors. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_simpleBlobDetector (vx_graph graph, vx_image input, vx_array output_kp, vx_image mask)
 [Graph] Creates a OpenCV Simple Blob detector node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_starFeatureDetector (vx_graph graph, vx_image input, vx_array output_kp, vx_image mask, vx_int32 maxSize, vx_int32 responseThreshold, vx_int32 lineThresholdProjected, vx_int32 lineThresholdBinarized, vx_int32 suppressNonmaxSize)
 [Graph] Creates a OpenCV Star feature detector node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_surfCompute (vx_graph graph, vx_image input, vx_image mask, vx_array output_kp, vx_array output_des, vx_float32 hessianThreshold, vx_int32 nOctaves, vx_int32 nOctaveLayers, vx_bool extended, vx_bool upright)
 [Graph] Creates a OpenCV SURF Compute node to compute descriptor from specified keypoints. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_surfDetect (vx_graph graph, vx_image input, vx_image mask, vx_array output_kp, vx_array output_des, vx_float32 hessianThreshold, vx_int32 nOctaves, vx_int32 nOctaveLayers)
 [Graph] Creates a OpenCV SURF detector node to detect keypoints and optionally compute descriptors. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_flip (vx_graph graph, vx_image input, vx_image output, vx_int32 FlipCode)
 [Graph] Creates a OpenCV Flip function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_transpose (vx_graph graph, vx_image input, vx_image output)
 [Graph] Creates a OpenCV transpose function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_integral (vx_graph graph, vx_image input, vx_image output, vx_int32 sdepth)
 [Graph] Creates a OpenCV integral function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_norm (vx_graph graph, vx_image input, vx_float32 norm_value, vx_int32 norm_type)
 [Graph] Creates a OpenCV norm function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_countNonZero (vx_graph graph, vx_image input, vx_int32 non_zero)
 [Graph] Creates a OpenCV countNonZero function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_multiply (vx_graph graph, vx_image input_1, vx_image input_2, vx_image output, vx_float32 scale, vx_int32 dtype)
 [Graph] Creates a OpenCV Multiply function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_divide (vx_graph graph, vx_image input_1, vx_image input_2, vx_image output, vx_float32 scale, vx_int32 dtype)
 [Graph] Creates a OpenCV Divide function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_add (vx_graph graph, vx_image input_1, vx_image input_2, vx_image output)
 [Graph] Creates a OpenCV ADD function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_subtract (vx_graph graph, vx_image input_1, vx_image input_2, vx_image output)
 [Graph] Creates a OpenCV Subtract function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_absDiff (vx_graph graph, vx_image input_1, vx_image input_2, vx_image output)
 [Graph] Creates a OpenCV absdiff function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_addWeighted (vx_graph graph, vx_image input_1, vx_float32 aplha, vx_image input_2, vx_float32 beta, vx_float32 gamma, vx_image output, vx_int32 dtype)
 [Graph] Creates a OpenCV addWeighted function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_adaptiveThreshold (vx_graph graph, vx_image input, vx_image output, vx_float32 maxValue, vx_int32 adaptiveMethod, vx_int32 thresholdType, vx_int32 blockSize, vx_float32 c)
 [Graph] Creates a OpenCV adaptiveThreshold function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_threshold (vx_graph graph, vx_image input, vx_image output, vx_float32 thresh, vx_float32 maxVal, vx_int32 type)
 [Graph] Creates a OpenCV threshold function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_distanceTransform (vx_graph graph, vx_image input, vx_image output)
 [Graph] Creates a OpenCV distanceTransform function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_cvtColor (vx_graph graph, vx_image input, vx_image output, vx_uint32 CODE)
 [Graph] Creates a OpenCV cvtColor function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_fastNlMeansDenoising (vx_graph graph, vx_image input, vx_image output, vx_float32 h, vx_int32 template_ws, vx_int32 search_ws)
 [Graph] Creates a OpenCV fastNlMeansDenoising function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_fastNlMeansDenoisingColored (vx_graph graph, vx_image input, vx_image output, vx_float32 h, vx_float32 h_color, vx_int32 template_ws, vx_int32 search_ws)
 [Graph] Creates a OpenCV fastNlMeansDenoisingColored function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_resize (vx_graph graph, vx_image input, vx_image output, vx_int32 Size_X, vx_int32 Size_Y, vx_float32 FX, vx_float32 FY, vx_int32 interpolation)
 [Graph] Creates a OpenCV Resize function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_pyrUp (vx_graph graph, vx_image input, vx_image output, vx_uint32 Swidth, vx_uint32 Sheight, vx_int32 bordertype)
 [Graph] Creates a OpenCV pyrup function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_pyrDown (vx_graph graph, vx_image input, vx_image output, vx_uint32 Swidth, vx_uint32 Sheight, vx_int32 bordertype)
 [Graph] Creates a OpenCV pyrdown function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_buildPyramid (vx_graph graph, vx_image input, vx_pyramid output, vx_uint32 maxLevel, vx_uint32 border)
 [Graph] Creates a OpenCV buildPyramid function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_buildOpticalFlowPyramid (vx_graph graph, vx_image input, vx_pyramid output, vx_uint32 S_width, vx_uint32 S_height, vx_int32 WinSize, vx_bool WithDerivatives, vx_int32 Pyr_border, vx_int32 derviBorder, vx_bool tryReuse)
 [Graph] Creates a OpenCV buildOpticalFlowPyramid function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_dilate (vx_graph graph, vx_image input, vx_image output, vx_matrix Kernel, vx_int32 Anchor_X, vx_int32 Anchor_Y, vx_int32 iterations, vx_int32 border)
 [Graph] Creates a OpenCV Dilate function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_erode (vx_graph graph, vx_image input, vx_image output, vx_matrix Kernel, vx_int32 Anchor_X, vx_int32 Anchor_Y, vx_int32 iterations, vx_int32 border)
 [Graph] Creates a OpenCV Erode function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_warpAffine (vx_graph graph, vx_image input, vx_image output, vx_matrix M, vx_int32 Size_X, vx_int32 Size_Y, vx_int32 flags, vx_int32 border)
 [Graph] Creates a OpenCV warpAffine function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_warpPerspective (vx_graph graph, vx_image input, vx_image output, vx_matrix M, vx_int32 Size_X, vx_int32 Size_Y, vx_int32 flags, vx_int32 border)
 [Graph] Creates a OpenCV warpPerspective function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_morphologyEX (vx_graph graph, vx_image input, vx_image output, vx_int32 OP, vx_matrix Kernel, vx_int32 Anchor_X, vx_int32 Anchor_Y, vx_int32 iterations, vx_int32 border)
 [Graph] Creates a OpenCV morphologyEX function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_bitwiseAnd (vx_graph graph, vx_image input_1, vx_image input_2, vx_image output)
 [Graph] Creates a OpenCV Bitwise And function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_bitwiseNot (vx_graph graph, vx_image input, vx_image output)
 [Graph] Creates a OpenCV Bitwise NOT function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_bitwiseOr (vx_graph graph, vx_image input_1, vx_image input_2, vx_image output)
 [Graph] Creates a OpenCV Bitwise OR function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_bitwiseXor (vx_graph graph, vx_image input_1, vx_image input_2, vx_image output)
 [Graph] Creates a OpenCV Bitwise XOR function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_canny (vx_graph graph, vx_image input, vx_image output, vx_float32 threshold1, vx_float32 threshold2, vx_int32 aperture_size, vx_bool L2_Gradient)
 [Graph] Creates a OpenCV Canny function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_compare (vx_graph graph, vx_image input_1, vx_image input_2, vx_image output, vx_int32 cmpop)
 [Graph] Creates a OpenCV Compare function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_convertScaleAbs (vx_graph graph, vx_image image_in, vx_image image_out, vx_float32 alpha, vx_float32 beta)
 [Graph] Creates a OpenCV convertScaleAbs function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_cornerHarris (vx_graph graph, vx_image input, vx_image output, vx_int32 blocksize, vx_int32 ksize, vx_float32 k, vx_int32 border)
 [Graph] Creates a OpenCV cornerHarris function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_cornerMinEigenVal (vx_graph graph, vx_image input, vx_image output, vx_uint32 blockSize, vx_uint32 ksize, vx_int32 border)
 [Graph] Creates a OpenCV cornerMinEigenVal function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_laplacian (vx_graph graph, vx_image input, vx_image output, vx_uint32 ddepth, vx_uint32 ksize, vx_float32 scale, vx_float32 delta, vx_int32 border_mode)
 [Graph] Creates a OpenCV Laplacian function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_scharr (vx_graph graph, vx_image input, vx_image output, vx_int32 ddepth, vx_int32 dx, vx_int32 dy, vx_float32 scale, vx_float32 delta, vx_int32 bordertype)
 [Graph] Creates a OpenCV Scharr function node. More...
 
SHARED_PUBLIC vx_node VX_API_CALL vxExtCvNode_sobel (vx_graph graph, vx_image input, vx_image output, vx_int32 ddepth, vx_int32 dx, vx_int32 dy, vx_int32 Ksize, vx_float32 scale, vx_float32 delta, vx_int32 bordertype)
 [Graph] Creates a OpenCV Sobel function node. More...
 

Detailed Description

The AMD OpenVX OpenCV Nodes Extension Library.

Macro Definition Documentation

◆ dimof

#define dimof (   x)    (sizeof(x) / sizeof(x[0]))

A macro to get the number of elements in an array.

Parameters
[in]xThe array whose size is to be determined.
Returns
The number of elements in the array.

Function Documentation

◆ vxCreateNodeByStructure()

vx_node vxCreateNodeByStructure ( vx_graph  graph,
vx_enum  kernelenum,
vx_reference  params[],
vx_uint32  num 
)

Creates a node in a graph using a predefined kernel structure.

Parameters
[in]graphThe handle to the graph.
[in]kernelenumThe enum value representing the kernel to be used.
[in]paramsAn array of parameter references for the kernel.
[in]numThe number of parameters in the params array.
Returns
A handle to the created node.