Alexander Alekhin
d484939c02
Merge pull request #20999 from alalek:dnn_replace_deprecated_calls
...
dnn(protobuf): replace deprecated calls
* dnn: replace deprecated ByteSize() => ByteSizeLong()
* dnn: replace deprecated calls, use GetRepeatedFieldRef
2021-11-03 15:59:36 +00:00
Alexander Alekhin
b3e16c6423
videoio(dshow): eliminate build warnings from MSVC-Clang
2021-11-02 19:22:47 +00:00
Souriya Trinh
30d6766db4
Add conventional Bayer naming.
2021-11-02 20:17:57 +01:00
Alexander Alekhin
bce76a7977
Merge pull request #20980 from alalek:highgui_fix_cvGetWindowImageRect_3.4
2021-10-30 13:59:08 +00:00
Alexander Alekhin
0ee61d178f
highgui: drop invalid cvGetWindowImageRect
...
- return type is C++ template
- removal from 'extern "C"' scope broke ABI anyway, so this symbols is removed completelly
2021-10-30 12:40:20 +00:00
Alexander Alekhin
74cc63ba2f
Merge pull request #20969 from alalek:fix_msvc_clang_warning_noreturn
2021-10-28 23:00:49 +00:00
Alexander Alekhin
0b6e360602
Merge pull request #20967 from alalek:fix_msvc_clang_unused_parameter
2021-10-28 22:27:41 +00:00
Alexander Alekhin
a49cda6523
core: eliminate Winvalid-noreturn in base.hpp
2021-10-28 21:33:20 +00:00
Alexander Alekhin
d612c72405
build: fix MSVC-Clang warnings about unused parameters in stubs
2021-10-28 21:08:36 +00:00
Alexander Alekhin
6bd143dd25
Merge pull request #20961 from alalek:fix_msvc_clang
2021-10-28 13:54:24 +00:00
Alexander Alekhin
770d3eabc0
Merge pull request #20960 from alalek:fix_icc_support_3.4
2021-10-28 13:54:07 +00:00
Alexander Alekhin
75e2ba5af3
core(simd): fix compilation with MSVC-Clang
2021-10-28 11:25:00 +00:00
Alexander Alekhin
1726bb6c0d
build(icc): fix nodiscard attribute handling
2021-10-28 05:52:22 +00:00
Alexander Alekhin
d059cc7170
Merge pull request #20958 from noahstier:3.4_tvl1_optimization
2021-10-27 19:59:57 +00:00
Noah Stier
84a81579ba
tvl1 cuda optflow optimization
2021-10-27 12:01:53 -07:00
Alexander Alekhin
aa11cc19e8
Merge pull request #20919 from berak:patch-1
2021-10-22 14:08:08 +00:00
berak
a6f5717567
resolves #20913
...
imgproc: remove asserts for circles_ in HoughCircles
2021-10-22 15:07:57 +02:00
AleksandrPanov
d21622bef4
fix findMinEnclosingTriangle and add tests
2021-10-21 18:12:51 +03:00
Alexander Alekhin
4e65db80e8
Merge pull request #20916 from Harvey-Huang:32bit_rgb
2021-10-21 11:45:48 +00:00
Harvey
ce68291d83
32bit rgb bmp file should not copy data as rgba
2021-10-21 16:47:27 +08:00
Zhuo Zhang
7da51787b9
Merge pull request #20900 from zchrissirhcz:3.4-hwfeatures-support-qnx
...
* fix: correctly check neon flags for QNX platform
* refactor: change __QNXNTO__ to __QNX__
2021-10-19 13:30:27 +00:00
Alexander Alekhin
b1f422c1c5
Merge pull request #20894 from alalek:core_simd_int64_ctor_sse
2021-10-19 13:29:52 +00:00
rogday
b3f966e2ca
Merge pull request #20883 from rogday:eltwise_refactoring
...
* backport elementwise_layers refactor
* keep NULL
2021-10-19 13:29:22 +00:00
Michel Promonet
9a9e457dd6
Allow to set av_log_set_level to reduce ffmpeg level below AV_LOG_ERROR
2021-10-19 10:46:41 +02:00
Alexander Alekhin
b5fcb06a76
core(SIMD): update int64 SSE constructor
2021-10-18 18:59:40 +00:00
Sergiu Deitsch
f8f9f3c438
fixed AVX compile error
...
Some older compilers do not allow to pass a `const int` as an immediate. Use an unnamed enum instead.
2021-10-18 14:56:19 +02:00
Wehzie
f9e747dbc6
Fixed typo in CV_Error message
...
Error was "Input parameters must be a matrices!", but "matrices" is plural and doesn't allow the unspecific article "a".
2021-10-17 15:37:14 +03:00
Nicholas Ho
bd0732b1d0
Merge pull request #20740 from Nicholas-Ho-arm:3.4_SymmColumnVec_32f8u
...
* Add SymmColumnVec_32f8u
* Fix double to float warnings
2021-10-15 11:47:53 +00:00
Alexander Alekhin
3c8cadf7ca
Merge pull request #20867 from alalek:fix_CV_POPCNT_U64_msvs
2021-10-13 17:08:58 +00:00
Alexander Alekhin
7c0b26e8a0
Merge pull request #20834 from sthalik:msvc-shared-library-static-crt
2021-10-13 14:21:08 +00:00
Alexander Alekhin
982503e9a8
core: ensure 'int' result from CV_POPCNT_U64(x)
2021-10-13 01:14:37 +00:00
Stanislaw Halik
3d93675ff9
fix link error on shared libs with -MT
2021-10-12 17:50:31 +02:00
Alexander Alekhin
53d6c9b9c0
Merge pull request #20860 from rogday:sum_fix
2021-10-12 15:36:32 +00:00
Smirnov Egor
238dbffb48
change asserts for Sum
2021-10-11 20:59:44 +03:00
Smirnov Egor
a9d7b6eab7
fix const - input and remove unimplemented function
2021-10-11 18:58:10 +03:00
Alexander Alekhin
62252d157e
Merge tag '3.4.16'
2021-10-08 19:05:00 +00:00
Alexander Alekhin
b1cf550123
release: OpenCV 3.4.16
2021-10-08 18:31:56 +00:00
Alexander Alekhin
17bd9a1fa1
Merge pull request #20841 from alalek:core_keep_TlsAbstraction_singleton_3.4
2021-10-08 07:01:05 +00:00
Alexander Alekhin
81e7988eb9
Merge pull request #20840 from alalek:dnn_ocl_cleanup_code
2021-10-08 05:07:51 +00:00
Alexander Alekhin
4985311d46
core(tls): avoid destruction of TlsAbstraction singleton
2021-10-08 03:12:58 +00:00
Alexander Alekhin
05348f3250
Merge pull request #20839 from alalek:issue_20828_netbsd
2021-10-08 02:19:54 +00:00
Alexander Alekhin
003609e565
Merge pull request #20838 from alalek:fix_20833
2021-10-08 02:09:46 +00:00
Jonas Vautherin
9537a909f7
Merge pull request #20801 from JonasVautherin:fix-gst-error-handling
...
* Fix gst error handling
* Use the return value instead of the error, which gives no guarantee of being NULL in case of error
* Test err pointer before accessing it
* Remove unreachable code
* videoio(gstreamer): restore check in writer code
Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
2021-10-08 02:07:04 +00:00
Alexander Alekhin
8c2dd5fb9a
dnn(ocl4dnn): cleanup dead code, improve logging
2021-10-08 00:39:40 +00:00
Alexander Alekhin
27545dcc86
core: add __NetBSD__ build fix in parallel.cpp
2021-10-07 23:29:28 +00:00
Alexander Alekhin
724e04e979
dnn(ocl4dnn): add extra checks to convolution layer
...
- prevent running code over unsupported/non-tested configurations
- prevent integer div by zero
2021-10-07 23:18:32 +00:00
Alexander Panov
dfc94c58f0
Merge pull request #20823 from AleksandrPanov:fix_orb_integer_overflow
...
Fix ORB integer overflow
* set size_t step to fix integer overflow in ptr0 offset
* added issue_537 test
* minor fix tags, points
* added size_t_step and offset to remove mixed unsigned and signed operations
* features2d: update ORB checks
Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
2021-10-07 22:46:25 +00:00
Oliver Kuckertz
a3d7811f24
Merge pull request #20725 from mologie:fix-dnn-tf-on-arm
...
* dnn: fix unaligned memory access crash on armv7
The getTensorContent function would return a Mat pointing to some
member of a Protobuf-encoded message. Protobuf does not make any
alignment guarantees, which results in a crash on armv7 when loading
models while bit 2 is set in /proc/cpu/alignment (or the relevant
kernel feature for alignment compatibility is disabled). Any read
attempt from the previously unaligned data member would send SIGBUS.
As workaround, this commit makes an aligned copy via existing clone
functionality in getTensorContent. The unsafe copy=false option is
removed. Unfortunately, a rather crude hack in PReLUSubgraph in fact
writes(!) to the Protobuf message. We limit ourselves to fixing the
alignment issues in this commit, and add getTensorContentRefUnaligned
to cover the write case with a safe memcpy. A FIXME marks the issue.
* dnn: reduce amount of .clone() calls
* dnn: update FIXME comment
Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
2021-10-06 16:41:05 +00:00
Alexander Alekhin
755e0143fb
Merge pull request #20815 from alalek:fix_20649_revert_19859
...
features2d: repair SimpleBlobDetector
* features2d: revert code change by PR #19859
Reverted commit 76860933f0
* features2d: check SimpleBlobDetector parameters consistency
2021-10-06 15:05:45 +03:00
Alexander Alekhin
dfa48094dc
Merge pull request #20814 from alalek:dnn_pytest_input_3d
2021-10-06 12:02:34 +00:00
Alexander Alekhin
e585192eeb
Merge pull request #20802 from alalek:core_tls_init_TlsAbstraction
2021-10-06 12:01:06 +00:00
Alexander Alekhin
646924fce8
dnn(pytest/test_input_3d): reload model between switching targets
2021-10-05 23:23:08 +00:00
Alexander Alekhin
ebef84e9ea
pre: OpenCV 3.4.16 (version++)
2021-10-04 20:47:07 +00:00
Alexander Alekhin
b1a772d194
Merge pull request #20803 from alalek:core_parallel_workaround_tsan
2021-10-04 19:16:27 +00:00
keroiber
f11f2bfb56
Merge pull request #20743 from keroiber:prefix_js_function_bindings_with_namespace
...
* Prefix global javascript functions with sub-namespaces
* js: handle 'namespace_prefix_override', update filtering
- avoid functions override with same name but different namespace
Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
2021-10-04 16:51:49 +00:00
xhawk18
24f43e7ae9
Merge pull request #20183 from xhawk18:3.4
...
* improve compatibility for qt 6.
* cmake(highgui): rework Qt dependency support
* cmake(highgui): workaround Qt5Config.cmake "components" bug
Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
2021-10-04 16:44:57 +00:00
Alexander Alekhin
d20c9bde7e
core(TLS): force TlsAbstraction initialization before main()
2021-10-04 11:34:09 +00:00
Alexander Alekhin
62414e3073
core(parallel): suppress TSAN warning
2021-10-04 10:46:32 +00:00
Alexander Alekhin
48c985e775
Merge pull request #20797 from sturkmen72:restore_LSD
2021-10-02 17:50:38 +00:00
Alexander Alekhin
7358fffb0f
Merge pull request #20796 from JonasVautherin:patch-1
2021-10-02 17:48:23 +00:00
Jonas Vautherin
de5b6386e0
Fix gst_initializer
...
Use the return value of gst_init_check instead of testing the error pointer
2021-10-02 15:42:13 +00:00
Jannik Bamberger
ef53a9229f
Automatically set the correct OpenCV version in build.gradle
...
Automatically sets the correct OpenCV version in the CMAKE example contained in the build.gradle
file of the Android SDK.
2021-10-02 16:06:33 +02:00
Suleyman TURKMEN
259c39a63a
additional changes
2021-10-02 13:34:56 +03:00
Alexander Alekhin
327b98eb13
Merge pull request #20794 from alalek:dnn_ocl_fix_conv_dwconv_workgroup
2021-10-01 22:25:47 +00:00
Alexander Alekhin
f977d10a19
dnn(ocl): fix conv DWCONV workgroup
2021-10-01 18:52:07 +00:00
Alexander Alekhin
a0cf8c322d
Merge pull request #20793 from tomoaki0705:fixGaussianOverflow
2021-10-01 15:53:15 +00:00
Tomoaki Teshima
1e74f5850b
suppress GaussianBlur to generate empty images
...
* sharp Gaussian kernel causes over flow and ends up in blank image
2021-10-01 23:17:02 +09:00
Suleyman TURKMEN
9b76872708
restore LSD
2021-10-01 16:23:16 +03:00
Alexander Alekhin
4d587c341b
Merge pull request #20774 from alalek:dnn_ocl_fix_conv_basic_workgroup
2021-09-30 10:16:26 +00:00
Alexander Alekhin
846317ef37
dnn(ocl): fix conv BASIC workgroup
2021-09-29 14:55:46 +00:00
Alexander Alekhin
7e62789edf
Merge pull request #20763 from Cavendish-Koo:houghlines_sdiv_bug_fix
2021-09-29 11:04:13 +00:00
Alexander Alekhin
852663f6d2
Merge pull request #20748 from sturkmen72:clean_up_test_data
2021-09-28 20:45:39 +03:00
Cavendish-Koo
2f83c3b689
fix the bug of HoughlinesSDIV
2021-09-28 21:18:07 +08:00
Alexander Smorkalov
2cc14bd0fb
Verbose output for errors found by header parser.
2021-09-27 10:53:23 +03:00
Suleyman TURKMEN
fdc8ed8d05
Update perf_bgfg_mog2.cpp, perf_bgfg_knn.cpp
2021-09-25 23:06:50 +03:00
Nicholas Ho
236c64a17d
Merge pull request #20712 from Nicholas-Ho-arm:3.4_RowVec_8u32f
...
* Add RowVec_8u32f
* Fix build errors in Linux x64 Debug and armeabi-v7a
* Reformat code to make it more clean and conventional
* Optimise with vx_load_expand_q()
2021-09-25 17:43:33 +00:00
easonycwang
91ff45fbde
Tile:
...
This submission is used to improve the performance of the inpaint algorithm for 3 channels images(RGB or BGR).
Reason:
The original algorithm implementation did not consider the cache hits.
The loop of channels is outside the core loop, so the perfmance is not very good.
Moving the channel loop inside the core loop can significantly improve cache hits, thereby improving performance.
Performance:
360P, about >= 30% improvement
iphone8P: 5.52ms -> 3.75ms
iphone6s: 14.04ms -> 9.15ms
2021-09-24 21:47:14 +08:00
Amir Tulegenov
86a51015b1
Merge pull request #19554 from amirtu:OCV-215_cvtColorTwoPlane_wrong_output_when_Y_Plane_Mat_has_step
...
different paddings in cvtColorTwoPlane() for biplane YUV420
* Different paddings support in cvtColorTwoPlane() for biplane YUV420
* Build fix for dispatch case.
* Resoted old behaviour for y.step==uv.step to exclude perf regressions.
Co-authored-by: amir.tulegenov <amir.tulegenov@xperience.ai>
Co-authored-by: Alexander Smorkalov <alexander.smorkalov@xperience.ai>
2021-09-22 17:42:32 +03:00
Alexander Alekhin
998406d20e
Merge pull request #20729 from MikaelUrankar:3.4
2021-09-21 22:30:49 +00:00
mikael
f7b4b750d8
Detect FP16 on FreeBSD aarch64
2021-09-21 19:48:58 +02:00
SamFC10
9c5d7716e2
fix for unsqueeze opset version 13
2021-09-17 17:40:57 +05:30
Alexander Alekhin
46fd26e366
Merge pull request #20699 from alalek:dnn_perf_update_convolution_tests
2021-09-16 17:11:32 +00:00
rogday
c410d7a97d
Merge pull request #20671 from rogday:yolov4x-mish
...
Add support for YOLOv4x-mish
* backport to 3.4 for supporting yolov4x-mish
* add YOLOv4x-mish test
* address review comments
Co-authored-by: Guo Xu <guoxu@1school.com.cn>
2021-09-14 17:49:49 +00:00
Alexander Panov
1618c963e4
Merge pull request #20676 from AleksandrPanov:delete_createConvexHull_convertTo
...
* deleted dublicated createConvexHull and convertTo
* replaced checkVector(2) with points.empty()
2021-09-13 19:27:00 +03:00
Alexander Alekhin
6e66a9222a
dnn(onnx): fix format specifier
2021-09-11 22:26:52 +00:00
Alexander Alekhin
56b7622612
Merge pull request #20687 from alalek:core_ocl_fix_intel_gemm
2021-09-11 16:26:25 +00:00
Alexander Alekhin
696a6ccd57
Merge pull request #20686 from zihaomu:tf_biasadd_bug
...
DNN: BiasAdd tf_importer.cpp could load Const from First Place
2021-09-11 19:25:04 +03:00
Zihao Mu
51b03b87e6
BiasAdd could load Const from second place.
2021-09-11 15:34:41 +00:00
Alexander Alekhin
07e4076585
Merge pull request #20689 from diablodale:fix20613-selectocldevice
2021-09-10 22:26:36 +00:00
Dale Phurrough
de1a459879
fix opencv/opencv#20613
...
* copy 4.x selectOpenCLDevice() -- it is compatible
* filter platforms rather than trying only first matching
* this works on 3.4 and 4.x master
2021-09-10 21:18:01 +02:00
Alexander Alekhin
1aacb9bb15
dnn(perf): update convolution tests
2021-09-10 13:11:02 +00:00
Alexander Alekhin
9b4ecc96f6
core(ocl): buffer bounds in intelblas_gemm_buffer_NT
2021-09-10 12:10:41 +00:00
Alexander Alekhin
e3f4f874c5
Merge pull request #20670 from alalek:core_ocl_fix_intel_gpu_gemm_requirements
...
core(OpenCL): fix intel_gpu_gemm kernel requirements
* core(ocl): fix intel_gpu_gemm integration
- allow bailout to generic OpenCL kernel
* core(ocl): avoid failures of generic OpenCL gemm kernel
* core(ocl): define alignment requirements of intel_gpu_gemm kernels
2021-09-10 12:00:11 +00:00
Alexander Alekhin
6ace801418
Merge pull request #20661 from alalek:dnn_ocl_fix_gemm_like_kernel
2021-09-10 11:58:52 +00:00
rogday
d31b93b513
Merge pull request #20674 from rogday:prelu_slope
...
Fix PReLU negative slope access pattern
* fix prelu negative slope access pattern
* change begin() to ptr()
2021-09-10 11:07:16 +00:00
Alexander Alekhin
ac0fd6aa9a
Merge pull request #20675 from diablodale:fix2-20544
2021-09-09 21:35:03 +00:00
Dale Phurrough
068f33cfdf
add nodiscard to features2d clone funcs
2021-09-09 15:20:45 +02:00
rogday
4807cd8a6e
Merge pull request #20605 from rogday:split_slice_shenanigans
...
Add Normalize subgraph, fix Slice, Mul and Expand
* Add Normalize subgraph, support for starts<0 and axis<0 in Slice, Mul broadcasting in the middle and fix Expand's unsqueeze
* remove todos
* remove range-based for loop
* address review comments
* change >> to > > in template
* fix indexation
* fix expand that does nothing
2021-09-09 14:41:40 +03:00
Alexander Alekhin
35e824c287
dnn(ocl): fix out of bound access in GEMM-like kernels
...
- dropped usage of CreateSubBuffer() - buffers lifetime management issue
- fixed elementwise offset
- avoid out of bounds read access
2021-09-06 18:17:21 +00:00
Alexander Alekhin
5578ad5e14
dnn(ocl): fix automatic globalsize adjusting
...
- if kernel code doesn't support that
2021-09-06 03:11:29 +00:00