Merge pull request #25679 from asmorkalov:as/HAL_min_max_idx_fix

Fixed offset computation for ND case in MinMaxIdx HAL.
pull/25682/head
Alexander Smorkalov 6 months ago committed by GitHub
commit f4ebf7c0a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      modules/core/src/minmax.cpp

@ -1522,10 +1522,11 @@ void cv::minMaxIdx(InputArray _src, double* minVal,
if (res == CV_HAL_ERROR_OK)
{
// minIdx[0] and minIdx[0] are always 0 for "flatten" version
if (minIdx)
ofs2idx(src, minIdx[0], minIdx);
ofs2idx(src, minIdx[1], minIdx);
if (maxIdx)
ofs2idx(src, maxIdx[0], maxIdx);
ofs2idx(src, maxIdx[1], maxIdx);
return;
}
else if (res != CV_HAL_ERROR_NOT_IMPLEMENTED)

Loading…
Cancel
Save