opencv/modules
Paul Murphy a011035ed6 Merge pull request #15257 from pmur:resize
* resize: HResizeLinear reduce duplicate work

There appears to be a 2x unroll of the HResizeLinear against k,
however the k value is only incremented by 1 during the unroll. This
results in k - 1 duplicate passes when k > 1.

Likewise, the final pass may not respect the work done by the vector
loop. Start it with the offset returned by the vector op if
implemented. Note, no vector ops are implemented today.

The performance is most noticable on a linear downscale. A set of
performance tests are added to characterize this.  The performance
improvement is 10-50% depending on the scaling.

* imgproc: vectorize HResizeLinear

Performance is mostly gated by the gather operations
for x inputs.

Likewise, provide a 2x unroll against k, this reduces the
number of alpha gathers by 1/2 for larger k.

While not a 4x improvement, it still performs substantially
better under P9 for a 1.4x improvement. P8 baseline is
1.05-1.10x due to reduced VSX instruction set.

For float types, this results in a more modest
1.2x improvement.

* Update U8 processing for non-bitexact linear resize

* core: hal: vsx: improve v_load_expand_q

With a little help, we can do this quickly without gprs on
all VSX enabled targets.

* resize: Fix cn == 3 step per feedback

Per feedback, ensure we don't overrun. This was caught via the
failure observed in Test_TensorFlow.inception_accuracy.
2019-12-09 14:54:06 +03:00
..
calib3d Merge pull request #16024 from alalek:issue_15953 2019-12-05 14:23:48 +00:00
core Merge pull request #15257 from pmur:resize 2019-12-09 14:54:06 +03:00
cudaarithm
cudabgsegm
cudacodec
cudafeatures2d
cudafilters
cudaimgproc
cudalegacy build: eliminate CUDA warnings 2019-10-08 15:30:02 +03:00
cudaobjdetect
cudaoptflow removed typo 2019-11-06 17:15:31 +05:30
cudastereo
cudawarping
cudev
dnn Merge pull request #15988 from l-bat:custom_layer 2019-12-06 21:29:57 +03:00
features2d bindings: basic support for #if preprocessor directives 2019-12-04 18:42:31 +03:00
flann python: force using of ArgInfo 2019-11-15 19:16:22 +03:00
highgui build: GCC9 compilation 2019-11-12 18:49:34 +03:00
imgcodecs Update loadsave.cpp 2019-09-28 23:24:17 +03:00
imgproc Merge pull request #15257 from pmur:resize 2019-12-09 14:54:06 +03:00
java android: use .getRowStride() in JavaCamera2View 2019-10-28 18:45:56 +00:00
js js(test): update features2d test 2019-11-19 07:40:12 +00:00
ml Merge pull request #16017 from berak:fix_svm_train_auto 2019-11-29 11:38:22 +00:00
objdetect imgproc: fix bit-exact GaussianBlur() / sepFilter2D() (#15855) 2019-11-18 01:39:27 +03:00
photo Assorted documentation fixes 2019-08-31 01:50:11 +03:00
python pre: OpenCV 3.4.9 (version++) 2019-12-05 18:28:38 +00:00
shape
stitching Rename parameter R to H in AffineWarper member declarations 2019-11-25 16:31:03 -08:00
superres
ts Merge pull request #15537 from l-bat:ngraph 2019-12-02 16:16:06 +03:00
video Merge pull request #15799 from Cpitis:feature/parallelization 2019-10-31 23:38:49 +03:00
videoio videoio(v4l2): use logging, update handling of EBUSY, device closing 2019-11-23 10:36:43 +00:00
videostab backport: fixed warnings produced by clang-9.0.0 2019-09-23 18:36:18 +03:00
viz Merge pull request #15821 from ColasGael:colasg-viz-color 2019-11-01 22:37:34 +03:00
world
CMakeLists.txt