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 | 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...
|
|
[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 | The 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] | maxLoc | The 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] | minCount | The total number of detected minimums in image (optional). Use a VX_TYPE_UINT32 scalar. |
[out] | maxCount | The total number of detected maximums in image (optional). Use a VX_TYPE_UINT32 scalar. |
- Returns
vx_node
.
- Return values
-
0 | Node could not be created. |
* | Node handle. |
[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. |
[out] | maxVal | The maximum value in the image. |
[out] | minLoc | The minimum locations (optional). If the input image has several minimums, the kernel will return all of them). |
[out] | maxLoc | The maximum locations (optional). If the input image has several maximums, the kernel will return all of them). |
[out] | minCount | The total number of detected minimums in image (optional). |
[out] | maxCount | The total number of detected maximums in image (optional). |
- Returns
- A
vx_status_e
enumeration.
- Return values
-