![]() |
The OpenVX Specification
a73e458
|
Finds the minimum and maximum values in an image and a location for each [R00084].
If the input image has several minimums/maximums, the kernel returns all of them [R00085].
\[ minVal = \min_{ \begin{array}{c} 0 \le x' \le width \\ 0 \le y' \le height \end{array} } src(x',y') \]
\[ maxVal = \max_{ \begin{array}{c} 0 \le x' \le width \\ 0 \le y' \le height \end{array} } src(x',y') \]
Functions | |
| vx_node VX_API_CALL | vxMinMaxLocNode (vx_graph graph, vx_image input, vx_scalar minVal, vx_scalar maxVal, vx_array minLoc, vx_array maxLoc, vx_scalar minCount, vx_scalar maxCount) |
| [Graph] Creates a min,max,loc node. More... | |
| vx_node VX_API_CALL vxMinMaxLocNode | ( | vx_graph | graph, |
| vx_image | input, | ||
| vx_scalar | minVal, | ||
| vx_scalar | maxVal, | ||
| vx_array | minLoc, | ||
| vx_array | maxLoc, | ||
| vx_scalar | minCount, | ||
| vx_scalar | maxCount | ||
| ) |
[Graph] Creates a min,max,loc node.
| [in] | graph | The reference to create the graph [R00279]. |
| [in] | input | The input image in VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 format [R00280]. |
| [out] | minVal | The minimum value in the image, which corresponds to the type of the input [R00281]. |
| [out] | maxVal | The maximum value in the image, which corresponds to the type of the input [R00282]. |
| [out] | minLoc | The minimum VX_TYPE_COORDINATES2D locations [R00283](optional) [R00284]. If the input image has several minimums, the kernel will return up to the capacity of the array [R00285]. |
| [out] | maxLoc | The maximum VX_TYPE_COORDINATES2D locations [R00286](optional) [R00287]. If the input image has several maximums, the kernel will return up to the capacity of the array [R00288]. |
| [out] | minCount | The total number of detected minimums in image [R00289](optional). Use a VX_TYPE_UINT32 scalar [R00290]. |
| [out] | maxCount | The total number of detected maximums in image [R00291](optional). Use a VX_TYPE_UINT32 scalar [R00292]. |
vx_node. | vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |