mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 13:16:32 -06:00
this PR is related to issue #31308 The RVV INTER_AREA code uses a 2×2 average when the output dimensions are half the input dimensions. A fractional scale can round to those same dimensions, causing 2x2 average to produce incorrect pixel values. Now it uses the fast path only for exact halving. The fractional cases that caused the issue before now fall back to opencv's standard cpu resize. This also avoids an existing 16 bit table offset overflow in the general RVV area kernel for tall images.