mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +08:00
Fixed offset computation for ND case in MinMaxIdx HAL.
This commit is contained in:
parent
7e9ef4db86
commit
9ed1d6730f
@ -1522,10 +1522,11 @@ void cv::minMaxIdx(InputArray _src, double* minVal,
|
|||||||
|
|
||||||
if (res == CV_HAL_ERROR_OK)
|
if (res == CV_HAL_ERROR_OK)
|
||||||
{
|
{
|
||||||
|
// minIdx[0] and minIdx[0] are always 0 for "flatten" version
|
||||||
if (minIdx)
|
if (minIdx)
|
||||||
ofs2idx(src, minIdx[0], minIdx);
|
ofs2idx(src, minIdx[1], minIdx);
|
||||||
if (maxIdx)
|
if (maxIdx)
|
||||||
ofs2idx(src, maxIdx[0], maxIdx);
|
ofs2idx(src, maxIdx[1], maxIdx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (res != CV_HAL_ERROR_NOT_IMPLEMENTED)
|
else if (res != CV_HAL_ERROR_NOT_IMPLEMENTED)
|
||||||
|
Loading…
Reference in New Issue
Block a user