The OpenVX Specification  dba1aa3
Min, Max Location

Detailed Description

Finds the minimum and maximum values in an image and a location for each.

If the input image has several minimums/maximums, the kernel returns all of them.

\[ 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_status VX_API_CALL vxuMinMaxLoc (vx_context context, vx_image input, vx_scalar minVal, vx_scalar maxVal, vx_array minLoc, vx_array maxLoc, vx_scalar minCount, vx_scalar maxCount)
 [Immediate] Computes the minimum and maximum values of the image. More...
 

Function Documentation

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.
[in]inputThe input image in VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 format.
[out]minValThe minimum value in the image, which corresponds to the type of the input.
[out]maxValThe maximum value in the image, which corresponds to the type of the input.
[out]minLoc[optional] The minimum VX_TYPE_COORDINATES2D locations. If the input image has several minimums, the kernel will return up to the capacity of the array.
[out]maxLoc[optional] The maximum VX_TYPE_COORDINATES2D locations. If the input image has several maximums, the kernel will return up to the capacity of the array.
[out]minCount[optional] The total number of detected minimums in image. Use a VX_TYPE_SIZE scalar.
[out]maxCount[optional] The total number of detected maximums in image. Use a VX_TYPE_SIZE scalar.
Returns
vx_node.
Return values
vx_nodeA node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus
vx_status VX_API_CALL vxuMinMaxLoc ( vx_context  context,
vx_image  input,
vx_scalar  minVal,
vx_scalar  maxVal,
vx_array  minLoc,
vx_array  maxLoc,
vx_scalar  minCount,
vx_scalar  maxCount 
)

[Immediate] Computes the minimum and maximum values of the image.

Parameters
[in]contextThe reference to the overall context.
[in]inputThe input image in VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 format.
[out]minValThe minimum value in the image, which corresponds to the type of the input.
[out]maxValThe maximum value in the image, which corresponds to the type of the input.
[out]minLoc[optional] The minimum VX_TYPE_COORDINATES2D locations. If the input image has several minimums, the kernel will return up to the capacity of the array.
[out]maxLoc[optional] The maximum VX_TYPE_COORDINATES2D locations. If the input image has several maximums, the kernel will return up to the capacity of the array.
[out]minCount[optional] The total number of detected minimums in image. Use a VX_TYPE_SIZE scalar.
[out]maxCount[optional] The total number of detected maximums in image. Use a VX_TYPE_SIZE scalar.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.