The OpenVX Specification  a73e458
Min, Max Location

Detailed Description

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...
 

Function Documentation

◆ vxMinMaxLocNode()

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.

Parameters
[in]graphThe reference to create the graph [R00279].
[in]inputThe input image in VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 format [R00280].
[out]minValThe minimum value in the image, which corresponds to the type of the input [R00281].
[out]maxValThe maximum value in the image, which corresponds to the type of the input [R00282].
[out]minLocThe 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]maxLocThe 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]minCountThe total number of detected minimums in image [R00289](optional). Use a VX_TYPE_UINT32 scalar [R00290].
[out]maxCountThe total number of detected maximums in image [R00291](optional). Use a VX_TYPE_UINT32 scalar [R00292].
Returns
vx_node.
Return values
vx_nodeA node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus