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') \]
|
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...
|
|
[Graph] Creates a min,max,loc node.
- Parameters
-
[in] | graph | The reference to create the graph. |
[in] | input | The input image in VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 format. |
[out] | minVal | The minimum value in the image, which corresponds to the type of the input. |
[out] | maxVal | The 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_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
[Immediate] Computes the minimum and maximum values of the image.
- Parameters
-
[in] | context | The reference to the overall context. |
[in] | input | The input image in VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 format. |
[out] | minVal | The minimum value in the image, which corresponds to the type of the input. |
[out] | maxVal | The 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
-