Abhishek Gola 32e37312fd Merge pull request #31318 from ChandraguptSharma07/fix-rvv-area-resize
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.
2026-12-02 23:01:07 +05:30
2020-02-26 15:12:45 +03:00
2018-10-11 17:57:51 +00:00
2025-08-01 09:50:10 +03:00

OpenCV: Open Source Computer Vision Library

Resources

Contributing

Please read the contribution guidelines before starting work on a pull request.

Summary of the guidelines:

  • One pull request per issue;
  • Choose the right base branch: all new work goes to 5.x, while 4.x accepts only bug fixes and other minor fixes;
  • Include tests and documentation;
  • Clean up "oops" commits before submitting;
  • Follow the coding style guide.

Additional Resources

Description
Languages
C++ 87.7%
C 3.1%
Python 2.9%
CMake 2%
Java 1.5%
Other 2.6%