platform/upstream/opencv.git
4 years agoMerge pull request #15747 from TH3CHARLie:imshow-fix
Alexander Alekhin [Sun, 20 Oct 2019 13:08:40 +0000 (13:08 +0000)]
Merge pull request #15747 from TH3CHARLie:imshow-fix

4 years agofix incorrect imshow behavior
TH3CHARLie [Sat, 19 Oct 2019 12:34:18 +0000 (20:34 +0800)]
fix incorrect imshow behavior

4 years agoMerge pull request #15216 from dmatveev:dm/ng-0010-g-api-streaming-api
Dmitry Matveev [Fri, 18 Oct 2019 16:29:58 +0000 (19:29 +0300)]
Merge pull request #15216 from dmatveev:dm/ng-0010-g-api-streaming-api

* G-API-NG/Streaming: Introduced a Streaming API

Now a GComputation can be compiled in a special "streaming" way
and then "played" on a video stream.

Currently only VideoCapture is supported as an input source.

* G-API-NG/Streaming: added threading & real streaming

* G-API-NG/Streaming: Added tests & docs on Copy kernel

- Added very simple pipeline tests, not all data types are covered yet
  (in fact, only GMat is tested now);
- Started testing non-OCV backends in the streaming mode;
- Added required fixes to Fluid backend, likely it works OK now;
- Added required fixes to OCL backend, and now it is likely broken
- Also added a UMat-based (OCL) version of Copy kernel

* G-API-NG/Streaming: Added own concurrent queue class

- Used only if TBB is not available

* G-API-NG/Streaming: Fixing various issues

- Added missing header to CMakeLists.txt
- Fixed various CI issues and warnings

* G-API-NG/Streaming: Fixed a compile-time GScalar queue deadlock

- GStreamingExecutor blindly created island's input queues for
  compile-time (value-initialized) GScalars which didn't have any
  producers, making island actor threads wait there forever

* G-API-NG/Streaming: Dropped own version of Copy kernel

One was added into master already

* G-API-NG/Streaming: Addressed GArray<T> review comments

- Added tests on mov()
- Removed unnecessary changes in garray.hpp

* G-API-NG/Streaming: Added Doxygen comments to new public APIs

Also fixed some other comments in the code

* G-API-NG/Streaming: Removed debug info, added some comments & renamed vars

* G-API-NG/Streaming: Fixed own-vs-cv abstraction leak

- Now every island is triggered with own:: (instead of cv::)
  data objects as inputs;
- Changes in Fluid backend required to support cv::Mat/Scalar were
  reverted;

* G-API-NG/Streaming: use holds_alternative<> instead of index/index_of test

- Also fixed regression test comments
- Also added metadata check comments for GStreamingCompiled

* G-API-NG/Streaming: Made start()/stop() more robust

- Fixed various possible deadlocks
- Unified the shutdown code
- Added more tests covering different corner cases on start/stop

* G-API-NG/Streaming: Finally fixed Windows crashes

In fact the problem hasn't been Windows-only.
Island thread popped data from queues without preserving the Cmd
objects and without taking the ownership over data acquired so when
islands started to process the data, this data may be already freed.

Linux version worked only by occasion.

* G-API-NG/Streaming: Fixed (I hope so) Windows warnings

* G-API-NG/Streaming: fixed typos in internal comments

- Also added some more explanation on Streaming/OpenCL status

* G-API-NG/Streaming: Added more unit tests on streaming

- Various start()/stop()/setSource() call flow combinations

* G-API-NG/Streaming: Added tests on own concurrent bounded queue

* G-API-NG/Streaming: Added more tests on various data types, + more

- Vector/Scalar passed as input;
- Vector/Scalar passed in-between islands;
- Some more assertions;
- Also fixed a deadlock problem when inputs are mixed (1 constant, 1 stream)

* G-API-NG/Streaming: Added tests on output data types handling

- Vector
- Scalar

* G-API-NG/Streaming: Fixed test issues with IE + Windows warnings

* G-API-NG/Streaming: Decoupled G-API from videoio

- Now the core G-API doesn't use a cv::VideoCapture directly,
  it comes in via an abstract interface;
- Polished a little bit the setSource()/start()/stop() semantics,
  now setSource() is mandatory before ANY call to start().

* G-API-NG/Streaming: Fix STANDALONE build (errors brought by render)

4 years agoMerge pull request #15699 from TolyaTalamanov:at/graph-ocv-render-backend-skeleton
atalaman [Thu, 17 Oct 2019 18:04:03 +0000 (21:04 +0300)]
Merge pull request #15699 from TolyaTalamanov:at/graph-ocv-render-backend-skeleton

G-API: Implement OpenCV render backend

* Implement render opencv backend

* Fix comment to review

* Add comment

* Add wrappers for kernels

* Fix comments to review

* Fix comment to review

4 years agoMerge pull request #15704 from alalek:gapi_avoid_dynamic_initializers_in_optimized_code
Alexander Alekhin [Tue, 15 Oct 2019 15:22:09 +0000 (15:22 +0000)]
Merge pull request #15704 from alalek:gapi_avoid_dynamic_initializers_in_optimized_code

4 years agogapi: avoid dynamic initialization in dispatched files
Alexander Alekhin [Mon, 14 Oct 2019 22:55:20 +0000 (22:55 +0000)]
gapi: avoid dynamic initialization in dispatched files

4 years agoMerge pull request #15684 from OrestChura:id_helper_class_semicolon_issue
Alexander Alekhin [Mon, 14 Oct 2019 09:46:41 +0000 (09:46 +0000)]
Merge pull request #15684 from OrestChura:id_helper_class_semicolon_issue

4 years agoMerge pull request #15659 from malfet:use-atomic-in-getExpTab32f
Alexander Alekhin [Sat, 12 Oct 2019 20:27:57 +0000 (20:27 +0000)]
Merge pull request #15659 from malfet:use-atomic-in-getExpTab32f

4 years agoMerge pull request #15655 from malfet:use-atomic-in-parallel-for
Alexander Alekhin [Sat, 12 Oct 2019 20:26:15 +0000 (20:26 +0000)]
Merge pull request #15655 from malfet:use-atomic-in-parallel-for

4 years agoMerge pull request #15681 from mshabunin:fix-gapi-ie-test
Alexander Alekhin [Fri, 11 Oct 2019 13:12:45 +0000 (13:12 +0000)]
Merge pull request #15681 from mshabunin:fix-gapi-ie-test

4 years agoFix warning issue:
OrestChura [Thu, 10 Oct 2019 15:48:27 +0000 (18:48 +0300)]
Fix warning issue:
- unnecessary extra semicolon after member function definition removed

4 years agoG-API: removed deprecated IE call from test
Maksim Shabunin [Tue, 8 Oct 2019 12:50:56 +0000 (15:50 +0300)]
G-API: removed deprecated IE call from test

4 years agoMerge tag '4.1.2'
Alexander Alekhin [Wed, 9 Oct 2019 23:01:31 +0000 (23:01 +0000)]
Merge tag '4.1.2'

4 years agorelease: OpenCV 4.1.2
Alexander Alekhin [Wed, 9 Oct 2019 22:53:14 +0000 (22:53 +0000)]
release: OpenCV 4.1.2

OpenCV 4.1.2

4 years agoMerge tag '4.1.2-openvino'
Alexander Alekhin [Wed, 9 Oct 2019 22:52:29 +0000 (22:52 +0000)]
Merge tag '4.1.2-openvino'

4 years agoMerge pull request #15673 from TolyaTalamanov:at/fix-valgrind-issue
Alexander Alekhin [Wed, 9 Oct 2019 22:48:24 +0000 (22:48 +0000)]
Merge pull request #15673 from TolyaTalamanov:at/fix-valgrind-issue

4 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Wed, 9 Oct 2019 19:46:18 +0000 (19:46 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

4 years agoMerge tag '3.4.8'
Alexander Alekhin [Wed, 9 Oct 2019 15:33:35 +0000 (18:33 +0300)]
Merge tag '3.4.8'

4 years agoOpenCV release (3.4.8)
Alexander Alekhin [Wed, 9 Oct 2019 11:42:29 +0000 (14:42 +0300)]
OpenCV release (3.4.8)

OpenCV 3.4.8

4 years agoMerge pull request #15544 from mshabunin:disable_posix_memalign
Maksim Shabunin [Wed, 9 Oct 2019 11:06:12 +0000 (14:06 +0300)]
Merge pull request #15544 from mshabunin:disable_posix_memalign

* Disable posix_memalign by default

* core: fix memalign parameter handling

4 years agoMerge pull request #15666 from seanm:Wnewline
Alexander Smorkalov [Wed, 9 Oct 2019 11:04:44 +0000 (11:04 +0000)]
Merge pull request #15666 from seanm:Wnewline

4 years agoDefine operator<< for cv::gapi::wip::draw::Prim
Talamanov, Anatoliy [Wed, 9 Oct 2019 10:41:36 +0000 (13:41 +0300)]
Define operator<< for cv::gapi::wip::draw::Prim

4 years agoMerge pull request #15658 from tolysz:patch-1
Marcin Tolysz [Wed, 9 Oct 2019 08:38:10 +0000 (09:38 +0100)]
Merge pull request #15658 from tolysz:patch-1

* Cuda + OpenGL on ARM

There might be multiple ways of getting OpenCV compile on Tegra (NVIDIA Jetson) platform, but mainly they modify CUDA(8,9,10...) source code, this one fixes it for all installations.
( https://devtalk.nvidia.com/default/topic/1007290/jetson-tx2/building-opencv-with-opengl-support-/post/5141945/#5141945 et al.).
This way is exactly the same as the one proposed but the code change happens in OpenCV.

* Updated,
The link provided mentions: cuda8 + 9, I have cuda 10 + 10.1 (and can confirm it is still defined this way).
NVIDIA is probably using some other "secret" backend with Jetson.

4 years agoFixed clang -Wnewline-eof warning by adding newline to end of file
Sean McBride [Tue, 8 Oct 2019 18:16:11 +0000 (14:16 -0400)]
Fixed clang -Wnewline-eof warning by adding newline to end of file

4 years agoMerge pull request #15661 from alalek:fix_android_build_avx2
Alexander Alekhin [Tue, 8 Oct 2019 23:36:26 +0000 (23:36 +0000)]
Merge pull request #15661 from alalek:fix_android_build_avx2

4 years agoMerge pull request #15664 from alalek:build_eliminate_cuda_warnings
Alexander Alekhin [Tue, 8 Oct 2019 15:27:54 +0000 (15:27 +0000)]
Merge pull request #15664 from alalek:build_eliminate_cuda_warnings

4 years agobuild: eliminate CUDA warnings
Alexander Alekhin [Tue, 8 Oct 2019 12:30:02 +0000 (15:30 +0300)]
build: eliminate CUDA warnings

4 years agobuild: update AVX2 check
Alexander Alekhin [Tue, 8 Oct 2019 10:12:02 +0000 (13:12 +0300)]
build: update AVX2 check

- _mm256_bslli_epi128() works in GCC 4.9.3+ only
- Android NDK r10 doesn't support this instruction

4 years agoMerge pull request #15632 from aDanPin:dp/any_ref_tests
Pinaev Danil [Tue, 8 Oct 2019 09:42:49 +0000 (12:42 +0300)]
Merge pull request #15632 from aDanPin:dp/any_ref_tests

* Add a few more tests on `any`

Added tests:
- get_ref_to_val_from_any
- update_val_via_ref

* Style fix

4 years agoUse std::atomic in getExpTab32f and getLogTab32f
Nikita Shulga [Mon, 7 Oct 2019 23:32:25 +0000 (16:32 -0700)]
Use std::atomic in getExpTab32f and getLogTab32f

Reads and writes to volatile bool are not guaranteed to be atomic.

4 years agoUse atomic operations to modify flagNestedParallelFor
Nikita Shulga [Mon, 7 Oct 2019 17:58:25 +0000 (10:58 -0700)]
Use atomic operations to modify flagNestedParallelFor

This ensures uniform behavior on any C++11 compliant compiler

4 years agoMerge pull request #15642 from alalek:issue_15597
Alexander Alekhin [Mon, 7 Oct 2019 21:33:20 +0000 (00:33 +0300)]
Merge pull request #15642 from alalek:issue_15597

4 years agoMerge pull request #15510 from seiko2plus:issue15506
Sayed Adel [Mon, 7 Oct 2019 19:01:35 +0000 (21:01 +0200)]
Merge pull request #15510 from seiko2plus:issue15506

* core: rework and optimize SIMD implementation of dotProd

  - add new universal intrinsics v_dotprod[int32], v_dotprod_expand[u&int8, u&int16, int32], v_cvt_f64(int64)
  - add a boolean param for all v_dotprod&_expand intrinsics that change the behavior of addition order between
    pairs in some platforms in order to reach the maximum optimization when the sum among all lanes is what only matters
  - fix clang build on ppc64le
  - support wide universal intrinsics for dotProd_32s
  - remove raw SIMD and activate universal intrinsics for dotProd_8
  - implement SIMD optimization for dotProd_s16&u16
  - extend performance test data types of dotprod
  - fix GCC VSX workaround of vec_mule and vec_mulo (in little-endian it must be swapped)
  - optimize v_mul_expand(int32) on VSX

* core: remove boolean param from v_dotprod&_expand and implement v_dotprod_fast&v_dotprod_expand_fast

  this changes made depend on "terfendail" review

4 years agoMerge pull request #15654 from sturkmen72:patch-3
Alexander Alekhin [Mon, 7 Oct 2019 16:15:04 +0000 (16:15 +0000)]
Merge pull request #15654 from sturkmen72:patch-3

4 years agoimgproc: update histogram test
Alexander Alekhin [Mon, 7 Oct 2019 12:06:43 +0000 (15:06 +0300)]
imgproc: update histogram test

4 years agoMerge pull request #15653 from tolysz:patch-1
Alexander Alekhin [Mon, 7 Oct 2019 12:04:13 +0000 (12:04 +0000)]
Merge pull request #15653 from tolysz:patch-1

4 years agoFix compiler warnings for latest cuda npp which defines this itself as:
Marcin Tolysz [Mon, 7 Oct 2019 10:45:26 +0000 (11:45 +0100)]
Fix compiler warnings for latest cuda npp which defines this itself as:
```
#define NPP_VER_MAJOR 10
#define NPP_VER_MINOR 2
#define NPP_VER_PATCH 0
#define NPP_VER_BUILD 243

#define NPP_VERSION (NPP_VER_MAJOR * 1000 +     \
                     NPP_VER_MINOR *  100 +     \
                     NPP_VER_PATCH)

4 years agoUpdate copy.cpp
Suleyman TURKMEN [Mon, 7 Oct 2019 08:59:52 +0000 (11:59 +0300)]
Update copy.cpp

4 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Sat, 5 Oct 2019 15:45:31 +0000 (15:45 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

4 years agoMerge pull request #15646 from alalek:fix_avx512_detection
Alexander Alekhin [Sat, 5 Oct 2019 15:30:09 +0000 (15:30 +0000)]
Merge pull request #15646 from alalek:fix_avx512_detection

4 years agoMerge pull request #15644 from wise86-android:upgradePySetup
Alexander Alekhin [Sat, 5 Oct 2019 15:29:13 +0000 (15:29 +0000)]
Merge pull request #15644 from wise86-android:upgradePySetup

4 years agoMerge pull request #15641 from alalek:dnn_pytest_update_3.4
Alexander Alekhin [Sat, 5 Oct 2019 15:28:52 +0000 (15:28 +0000)]
Merge pull request #15641 from alalek:dnn_pytest_update_3.4

4 years agoMerge pull request #15602 from alalek:core_softfloat_ubsan_shift
Alexander Alekhin [Sat, 5 Oct 2019 15:27:35 +0000 (15:27 +0000)]
Merge pull request #15602 from alalek:core_softfloat_ubsan_shift

4 years agoupgrade the file to use the correct package name and include py3/gtk3 support
Wise86 [Sat, 5 Oct 2019 09:48:09 +0000 (11:48 +0200)]
upgrade the file to use the correct package name and include py3/gtk3 support

4 years agoMerge pull request #15638 from AsyaPronina:asyadev/gapi_filter2d_test
Alexander Alekhin [Sat, 5 Oct 2019 11:22:11 +0000 (11:22 +0000)]
Merge pull request #15638 from AsyaPronina:asyadev/gapi_filter2d_test

4 years agofix avx512 detection
Alexander Alekhin [Sat, 5 Oct 2019 10:39:35 +0000 (10:39 +0000)]
fix avx512 detection

- renamed Cascade Lake AVX512_CEL => AVX512_CLX (align with Intel SDE tool)
- fixed CLX instruction sets (no IFMA/VBMI)
- added flag to bypass CPU baseline check: OPENCV_SKIP_CPU_BASELINE_CHECK

4 years agoMerge pull request #15639 from alalek:dnn_test_fix_data
Alexander Alekhin [Fri, 4 Oct 2019 19:46:21 +0000 (19:46 +0000)]
Merge pull request #15639 from alalek:dnn_test_fix_data

4 years agoMerge pull request #15626 from alalek:dnn_openvino_2019r3
Alexander Alekhin [Fri, 4 Oct 2019 19:45:37 +0000 (19:45 +0000)]
Merge pull request #15626 from alalek:dnn_openvino_2019r3

4 years agoOpenCV G-API test for Filter2d has changed:
AsyaPronina [Fri, 4 Oct 2019 18:23:01 +0000 (21:23 +0300)]
OpenCV G-API test for Filter2d has changed:
    > Size parameter is changed from int to cv::Size type to allow rectangle kernels
    > Kernel creation code is adopted for different kernel sizes to not create only white images on the output

4 years agoimgproc: accurate histogram value thresholding
Alexander Alekhin [Thu, 3 Oct 2019 13:02:17 +0000 (16:02 +0300)]
imgproc: accurate histogram value thresholding

4 years agoMerge pull request #15622 from dkurt:enet_ie_cpu
Alexander Alekhin [Fri, 4 Oct 2019 16:31:05 +0000 (16:31 +0000)]
Merge pull request #15622 from dkurt:enet_ie_cpu

4 years agoMerge pull request #15631 from codeclown:pkg-config
Alexander Alekhin [Fri, 4 Oct 2019 15:56:16 +0000 (15:56 +0000)]
Merge pull request #15631 from codeclown:pkg-config

4 years agodnn(pytest): backport changes from master, update test setUp()
Alexander Alekhin [Fri, 4 Oct 2019 15:35:11 +0000 (18:35 +0300)]
dnn(pytest): backport changes from master, update test setUp()

4 years agoEnable ENet with Inference Engine backend on CPU
Dmitry Kurtaev [Wed, 2 Oct 2019 11:05:41 +0000 (14:05 +0300)]
Enable ENet with Inference Engine backend on CPU

4 years agodnn: update IE tests
Alexander Alekhin [Fri, 4 Oct 2019 07:29:27 +0000 (07:29 +0000)]
dnn: update IE tests

4 years agodnn(test): fix optional test data
Alexander Alekhin [Fri, 4 Oct 2019 13:48:05 +0000 (16:48 +0300)]
dnn(test): fix optional test data

4 years agoMerge pull request #15634 from alalek:issue_15083_4903
Alexander Alekhin [Fri, 4 Oct 2019 11:54:54 +0000 (11:54 +0000)]
Merge pull request #15634 from alalek:issue_15083_4903

4 years agoMerge pull request #15637 from APrigarina:3.4_version2
Alexander Alekhin [Fri, 4 Oct 2019 11:09:35 +0000 (14:09 +0300)]
Merge pull request #15637 from APrigarina:3.4_version2

QR-Code detection: accuracy improvement (fixed)

4 years agobug fix
APrigarina [Fri, 4 Oct 2019 08:47:56 +0000 (11:47 +0300)]
bug fix

4 years agoimgproc: fix fitLine() implementation
Alexander Alekhin [Thu, 3 Oct 2019 20:45:43 +0000 (20:45 +0000)]
imgproc: fix fitLine() implementation

- update optimal solutions on each iteration

4 years agoAdd note about pkg-config usage in tutorial
Martti Laine [Thu, 3 Oct 2019 12:55:03 +0000 (15:55 +0300)]
Add note about pkg-config usage in tutorial

4 years agoMerge pull request #15627 from andrey-golubev:fix_perform_subst
Alexander Alekhin [Wed, 2 Oct 2019 22:30:01 +0000 (22:30 +0000)]
Merge pull request #15627 from andrey-golubev:fix_perform_subst

4 years agoG-API: fix perform substitution UB/crash
andrey-golubev [Wed, 2 Oct 2019 17:54:11 +0000 (20:54 +0300)]
G-API: fix perform substitution UB/crash

4 years agodnn: use OpenVINO 2019R3 defines
Alexander Alekhin [Mon, 2 Sep 2019 12:35:35 +0000 (15:35 +0300)]
dnn: use OpenVINO 2019R3 defines

4 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Wed, 2 Oct 2019 14:49:19 +0000 (17:49 +0300)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

4 years agoMerge pull request #15621 from alalek:cmake_ipp_licenses
Alexander Alekhin [Wed, 2 Oct 2019 14:30:17 +0000 (14:30 +0000)]
Merge pull request #15621 from alalek:cmake_ipp_licenses

4 years agoMerge pull request #15620 from alalek:issue_14727
Alexander Alekhin [Wed, 2 Oct 2019 14:29:55 +0000 (14:29 +0000)]
Merge pull request #15620 from alalek:issue_14727

4 years agoMerge pull request #15467 from elmsfu:dshow/add_save_graph_file
Alexander Alekhin [Wed, 2 Oct 2019 14:27:56 +0000 (14:27 +0000)]
Merge pull request #15467 from elmsfu:dshow/add_save_graph_file

4 years agoMerge pull request #15619 from alalek:dnn_eltwise_sum_ie_ocl
Alexander Alekhin [Tue, 1 Oct 2019 18:02:45 +0000 (18:02 +0000)]
Merge pull request #15619 from alalek:dnn_eltwise_sum_ie_ocl

4 years agodshow: Add ability to save direct show graph
Elms [Thu, 5 Sep 2019 20:51:37 +0000 (13:51 -0700)]
dshow: Add ability to save direct show graph

4 years agodnn(test): skip IE/OCL test for "sum"
Alexander Alekhin [Tue, 1 Oct 2019 15:29:47 +0000 (18:29 +0300)]
dnn(test): skip IE/OCL test for "sum"

4 years agocmake: add check for IPP IW license files
Alexander Alekhin [Tue, 1 Oct 2019 15:04:21 +0000 (18:04 +0300)]
cmake: add check for IPP IW license files

4 years agoMerge pull request #15618 from alalek:dnn_test_async_timeout
Alexander Alekhin [Tue, 1 Oct 2019 14:48:47 +0000 (14:48 +0000)]
Merge pull request #15618 from alalek:dnn_test_async_timeout

4 years agocore: workaround transform() inplace calls
Alexander Alekhin [Tue, 1 Oct 2019 13:52:14 +0000 (16:52 +0300)]
core: workaround transform() inplace calls

4 years agoMerge pull request #15492 from TolyaTalamanov:at/new-render-prims
Alexander Alekhin [Tue, 1 Oct 2019 12:39:16 +0000 (12:39 +0000)]
Merge pull request #15492 from TolyaTalamanov:at/new-render-prims

4 years agodnn: increase async test timeout
Alexander Alekhin [Tue, 1 Oct 2019 10:31:57 +0000 (13:31 +0300)]
dnn: increase async test timeout

4 years agoAdd new render primitives
Talamanov, Anatoliy [Tue, 10 Sep 2019 09:23:16 +0000 (12:23 +0300)]
Add new render primitives

4 years agoMerge pull request #15611 from dkurt:fix_dnn_inp_size_autodetect
Alexander Alekhin [Mon, 30 Sep 2019 18:38:14 +0000 (18:38 +0000)]
Merge pull request #15611 from dkurt:fix_dnn_inp_size_autodetect

4 years agoMerge pull request #15609 from sturkmen72:update_loadsave_cpp
Alexander Alekhin [Mon, 30 Sep 2019 18:37:21 +0000 (18:37 +0000)]
Merge pull request #15609 from sturkmen72:update_loadsave_cpp

4 years agoMerge pull request #15480 from cancerberoSgx:estimateAffine2D
Sebastián Gurin [Mon, 30 Sep 2019 18:35:26 +0000 (15:35 -0300)]
Merge pull request #15480 from cancerberoSgx:estimateAffine2D

js - cv.estimateAffine2D, cv.warpPolar

4 years agoMerge pull request #15356 from APrigarina:3.4_version2
ann [Mon, 30 Sep 2019 18:33:58 +0000 (21:33 +0300)]
Merge pull request #15356 from APrigarina:3.4_version2

QR-Code detection: accuracy improvement

* first commit

* resize improvement

* resize improvement

* dummy commit

* warnings fix

* warnings fix

* warnings fix

* test added

* resize fix

* resize fix

* tests changed

* tests changed

4 years agoFix autodetection of input size for dnn networks
Dmitry Kurtaev [Sun, 29 Sep 2019 19:02:42 +0000 (22:02 +0300)]
Fix autodetection of input size for dnn networks

4 years agoUpdate loadsave.cpp
Suleyman TURKMEN [Sat, 28 Sep 2019 20:24:17 +0000 (23:24 +0300)]
Update loadsave.cpp

4 years agoMerge pull request #12670 from alalek:imgproc_getRotationMatrix2D_return_type
Alexander Alekhin [Sat, 28 Sep 2019 18:03:33 +0000 (18:03 +0000)]
Merge pull request #12670 from alalek:imgproc_getRotationMatrix2D_return_type

4 years agocore: fix UBSAN in softfloat
Alexander Alekhin [Thu, 26 Sep 2019 17:00:30 +0000 (20:00 +0300)]
core: fix UBSAN in softfloat

4 years agoMerge pull request #15600 from alalek:imgproc_pyramid_fix_indexing
Alexander Alekhin [Fri, 27 Sep 2019 10:21:52 +0000 (10:21 +0000)]
Merge pull request #15600 from alalek:imgproc_pyramid_fix_indexing

4 years agoMerge pull request #15595 from frastlin:rodrigues
Brandon [Fri, 27 Sep 2019 10:06:07 +0000 (03:06 -0700)]
Merge pull request #15595 from frastlin:rodrigues

* Added Rodrigues to the JS embindgen.py and a unittest in test_calib3d.js on 3.4 base

4 years agoimgproc: fix indexing issue in pyramids
Alexander Alekhin [Thu, 26 Sep 2019 14:56:24 +0000 (17:56 +0300)]
imgproc: fix indexing issue in pyramids

UBSAN violation expression: 'tab = tabR - x;'

4 years agoMerge pull request #15591 from alalek:core_persistence_fix
Alexander Alekhin [Thu, 26 Sep 2019 12:59:37 +0000 (12:59 +0000)]
Merge pull request #15591 from alalek:core_persistence_fix

4 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Wed, 25 Sep 2019 15:59:07 +0000 (18:59 +0300)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

4 years agoMerge pull request #15580 from smbz:dnn-lstm-reverse
Alexander Alekhin [Wed, 25 Sep 2019 15:54:05 +0000 (15:54 +0000)]
Merge pull request #15580 from smbz:dnn-lstm-reverse

4 years agoMerge pull request #15313 from andrey-golubev:map_subst_to_pattern
Andrey Golubev [Wed, 25 Sep 2019 15:19:45 +0000 (18:19 +0300)]
Merge pull request #15313 from andrey-golubev:map_subst_to_pattern

G-API: add transformation logic to GCompiler

* Introduce transformation logic to GCOmpiler

* Remove partialOk() method

* Fix minor issues

* Refactor code according to code review

1. Re-design matchPatternToSubstitute logic
2. Update transformations order
3. Replace check_transformations pass with a
   one time check in GCompiler ctor

* Revert unused nodes handling in pattern matching

* Address minor code review issues

* Address code review comments:

1) Fix some mistakes
2) Add new tests for endless loops
3) Update GCompiler's transformations logic

* Simplify GCompiler check for endless loops

1. Simplify transformations endless loops check:
 - Original idea wasn't a full solution
 - Need to develop a good method (heuristic?) to find loops
   in general case (TODO)
2. Remove irrelevant Endless Loops tests
3. Add new "bad arg" tests and unit tests

* Update comments

4 years agoMerge pull request #15579 from alalek:ocl_use_host_mem_ptr_flag
Alexander Alekhin [Wed, 25 Sep 2019 15:12:58 +0000 (15:12 +0000)]
Merge pull request #15579 from alalek:ocl_use_host_mem_ptr_flag

4 years agodnn: Allow LSTM layer to operate in reverse direction
Andrew Ryrie [Wed, 25 Sep 2019 13:12:43 +0000 (14:12 +0100)]
dnn: Allow LSTM layer to operate in reverse direction

This is useful for bidirectional LSTMs.

4 years agoMerge pull request #15582 from terfendail:pyrdown_oob
Alexander Alekhin [Wed, 25 Sep 2019 12:37:31 +0000 (12:37 +0000)]
Merge pull request #15582 from terfendail:pyrdown_oob

4 years agoMerge pull request #15572 from l-bat:deconv3d
Lubov Batanina [Wed, 25 Sep 2019 12:35:04 +0000 (15:35 +0300)]
Merge pull request #15572 from l-bat:deconv3d

Fix computation of internal shapes in Deconvolution layer

* Fix computation of internal shapes

* Refactoring

4 years agocore(ocl): add flag OPENCV_OPENCL_ENABLE_MEM_USE_HOST_PTR
Alexander Alekhin [Tue, 24 Sep 2019 10:03:29 +0000 (13:03 +0300)]
core(ocl): add flag OPENCV_OPENCL_ENABLE_MEM_USE_HOST_PTR

to control CL_MEM_USE_HOST_PTR usage

4 years agocore(persistence): fix reserveNodeSpace() implementation
Alexander Alekhin [Wed, 25 Sep 2019 11:01:44 +0000 (14:01 +0300)]
core(persistence): fix reserveNodeSpace() implementation

- avoid data copying after buffer block shrink
- resize current block in case of single FileNode

4 years agoMerge pull request #15581 from takacsd:3.4
Alexander Alekhin [Wed, 25 Sep 2019 10:45:49 +0000 (10:45 +0000)]
Merge pull request #15581 from takacsd:3.4

4 years agoFixed OOB reading in pyrDown
Vitaly Tuzov [Tue, 24 Sep 2019 15:41:39 +0000 (18:41 +0300)]
Fixed OOB reading in pyrDown