Open Source Computer Vision Library
Go to file
Paul E. Murphy c1cdb2416a imgproc(resize): improve 8u3 HResize vector exit calc
Actually, we can do this in constant time. xofs always
contains same or increasing offset values. We can instead
find the most extreme value used and never attempt to load it.

Similarly, we can note for all dx >= 0 and dx < (dwidth - cn)
where xofs[dx] + cn < xofs[dwidth-cn] implies dx < (dwidth - cn).

Thus, we can use this to control our loop termination optimally.

This fixes #16137 with little or no performance impact. I have
also added a debug check as a sanity check.
2020-01-03 14:46:59 -06:00
.github migration: github.com/opencv/opencv 2016-07-12 12:51:12 +03:00
3rdparty 3rdparty: TBB version 2019u8 => 2020.0 2019-12-18 23:14:38 +00:00
apps Fix spelling typos 2019-12-27 12:46:53 +00:00
cmake build: eliminate build warnings 2019-12-25 23:28:24 +00:00
data Some mist. typo fixes 2018-02-07 06:59:15 -05:00
doc Merge pull request #16247 from alalek:backport_16241 2019-12-27 16:20:52 +00:00
include add missing DNN header to opencv2/opencv.hpp 2018-02-15 15:59:14 +01:00
modules imgproc(resize): improve 8u3 HResize vector exit calc 2020-01-03 14:46:59 -06:00
platforms Fix spelling typos 2019-12-27 12:46:53 +00:00
samples Merge pull request #16263 from dkurt:dnn_tf_addv2 2019-12-30 22:56:11 +00:00
.editorconfig add .editorconfig 2018-10-11 17:57:51 +00:00
.gitattributes cmake: generate and install ffmpeg-download.ps1 2018-06-09 13:19:48 +03:00
.gitignore Merge pull request #15503 from cancerberoSgx:js-test-puppeteer 2019-11-17 00:29:38 +03:00
CMakeLists.txt Merge pull request #15537 from l-bat:ngraph 2019-12-02 16:16:06 +03:00
CONTRIBUTING.md migration: github.com/opencv/opencv 2016-07-12 12:51:12 +03:00
LICENSE copyright: 2020 2020-01-02 11:58:20 +00:00
README.md Improve README (#9243) 2017-09-13 17:58:34 +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;
  • Include tests and documentation;
  • Clean up "oops" commits before submitting;
  • Follow the coding style guide.