The OpenVX Specification  r28647
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
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 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 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 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]minLocThe minimum VX_TYPE_COORDINATES2D locations (optional). If the input image has several minimums, the kernel will return up to the capacity of the array.
[out]maxLocThe maximum VX_TYPE_COORDINATES2D locations (optional). If the input image has several maximums, the kernel will return up to the capacity of the array.
[out]minCountThe total number of detected minimums in image (optional). Use a VX_TYPE_UINT32 scalar.
[out]maxCountThe total number of detected maximums in image (optional). Use a VX_TYPE_UINT32 scalar.
Returns
vx_node.
Return values
0Node could not be created.
*Node handle.
vx_status 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.
[out]maxValThe maximum value in the image.
[out]minLocThe minimum locations (optional). If the input image has several minimums, the kernel will return all of them).
[out]maxLocThe maximum locations (optional). If the input image has several maximums, the kernel will return all of them).
[out]minCountThe total number of detected minimums in image (optional).
[out]maxCountThe total number of detected maximums in image (optional).
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.