mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
Merge branch 4.x
This commit is contained in:
@@ -811,10 +811,17 @@ The function cv::minMaxLoc finds the minimum and maximum element values and thei
|
||||
extremums are searched across the whole array or, if mask is not an empty array, in the specified
|
||||
array region.
|
||||
|
||||
The function do not work with multi-channel arrays. If you need to find minimum or maximum
|
||||
elements across all the channels, use Mat::reshape first to reinterpret the array as
|
||||
single-channel. Or you may extract the particular channel using either extractImageCOI, or
|
||||
mixChannels, or split.
|
||||
In C++, if the input is multi-channel, you should omit the minLoc, maxLoc, and mask arguments
|
||||
(i.e. leave them as NULL, NULL, and noArray() respectively). These arguments are not
|
||||
supported for multi-channel input arrays. If working with multi-channel input and you
|
||||
need the minLoc, maxLoc, or mask arguments, then use Mat::reshape first to reinterpret
|
||||
the array as single-channel. Alternatively, you can extract the particular channel using either
|
||||
extractImageCOI, mixChannels, or split.
|
||||
|
||||
In Python, multi-channel input is not supported at all due to a limitation in the
|
||||
binding generation process (there is no way to set minLoc and maxLoc to NULL). A
|
||||
workaround is to operate on each channel individually or to use NumPy to achieve the same
|
||||
functionality.
|
||||
@note CV_16F/CV_16BF/CV_Bool/CV_64U/CV_64S/CV_32U are not supported for src.
|
||||
@param src input single-channel array.
|
||||
@param minVal pointer to the returned minimum value; NULL is used if not required.
|
||||
|
||||
Reference in New Issue
Block a user