Sean McBride
5b23752205
Replaced incorrect double checked locking with a static
...
Thread Sanitizer identified an incorrect implementation of double checked locking.
Replaced it with a static, which therefore can only be created once.
2022-02-15 14:24:21 -05:00
Alexander Alekhin
8d88bb06b2
core(vsx): update vec_absd() workaround condition
2022-02-15 07:26:40 +03:00
Alexander Alekhin
19926e2979
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2022-02-11 17:32:37 +00:00
Vincent Rabaud
fc28ba3156
Merge pull request #21594 from vrabaud:3.4_msan
...
* Fix harmless MSAN error.
This is similar to https://github.com/opencv/opencv/pull/21527
A macro is also created to simplify the code.
* Declare fallback only once.
2022-02-10 19:44:14 +03:00
Greg Fiumara
dae73938e8
Fix cv::FileStorage::Mode::Memory doxygen layout
2022-02-09 12:24:50 -05:00
cudawarped
f66a2ffa1e
Fix GpuMat to correctly calculate dataend when using GpuMat::create().
...
Add output to createMat() to be used by locateROI test cases.
2022-02-02 14:25:46 +00:00
Alexander Alekhin
a351e05a17
Merge pull request #21538 from edman007:fixup-21536
2022-02-01 17:01:16 +00:00
Ed Martin
dc29632d4e
Fallback to vaCreateImage + vaPutImage/vaGetImage when vaDeriveImage fails
...
Per intel docs for libva, when vaDeriveImage fails vaCreateImage +
vaPutImage should be tried. This is important as mesa with AMD HW
will always fail because the image is interlaced so a indirect
method must be used to get the surface to/from and image
Fixes https://github.com/opencv/opencv/issues/21536
2022-01-31 17:12:37 -05:00
Alexander Alekhin
d573472a86
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2022-01-31 12:53:45 +00:00
Vincent Rabaud
b5b52afd35
Merge pull request #21527 from vrabaud:3.4_msan
...
* Fix wrong MSAN errors.
Because Fortran is called in Lapack, MSAN does not think the memory
has been written even though it is the case.
MSAN does no support well cross-language memory analysis.
* Make a dedicated check.
2022-01-28 15:35:47 +00:00
Vadim Levin
d88730685e
fix: submodules creation and registration
...
- Add special case handling when submodule has the same name as parent
- `PyDict_SetItemString` doesn't steal reference, so reference count
should be explicitly decremented to transfer object life-time
ownership
- Add sanity checks for module registration input
- Add Python 2 and Python 3 reference counting handling
2022-01-27 11:06:06 +03:00
Alexander Alekhin
83ce1de8e7
Merge pull request #21506 from alalek:core_fp_denormals
2022-01-26 08:52:27 +00:00
Alexander Alekhin
b1d484f827
core(parallel): propagate FP denormals mode
2022-01-26 05:19:02 +00:00
Alexander Alekhin
123519165d
core: FP denormals hints support
2022-01-26 05:19:02 +00:00
pkubaj
5d9ea394ba
Fix VSX detection on FreeBSD
...
hwcap should actually be long.
2022-01-25 13:35:22 +00:00
Yuriy Chernyshov
d1b533d399
Disable -Wreturn-type-c-linkage under clang-cl
...
clang-cl defines both __clang__ and _MSC_VER, yet uses `#pragma GCC` to disable certain diagnostics.
At the time `-Wreturn-type-c-linkage` was reported by clang-cl.
This PR fixes this behavior by reordering defines.
2022-01-24 11:42:02 +03:00
Alexander Alekhin
3f2377017c
Merge pull request #21497 from alalek:fix_build_gcc12_3.4
2022-01-23 14:00:55 +00:00
Alexander Alekhin
302d14adef
build: fix GCC12 compilation
2022-01-22 11:48:44 +00:00
Vadim Levin
eca2d92791
fix: submodules creation and registration
...
- Add special case handling when submodule has the same name as parent
- `PyDict_SetItemString` doesn't steal reference, so reference count
should be explicitly decremented to transfer object life-time
ownership
- Add sanity checks for module registration input
2022-01-19 18:06:58 +03:00
Alexander Alekhin
5ba9a089e1
core(persistence): avoid NULL pointer dereference
2022-01-18 04:56:43 +00:00
Alexander Alekhin
aebb65e983
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2022-01-12 13:26:10 +00:00
cudawarped
ecfbaa267d
Merge pull request #21374 from cudawarped:fix_cuda_event_flags
...
Allow cv::cuda::Event to accept combinations of flags
2022-01-11 23:57:25 +03:00
Vincent Rabaud
4db3a388dd
Fix a potential UBSAN error.
...
We only use that value as uint64_t below anyway.
2022-01-11 12:01:47 +01:00
Christoph Rackwitz
f3e0479a8f
kmeans: assertion "There can't be more clusters than elements"
2022-01-08 23:42:21 +01:00
Vincent Rabaud
bf5e09d5ab
Remove unnecessary use of ref-capture in code example.
2022-01-05 13:42:55 +01:00
Suleyman TURKMEN
0e6a2c0491
fix legacy constants
2022-01-03 15:08:10 +03:00
Joe Howse
c2209ad5e4
Doc warnings about experimental UMatUsageFlags
2021-12-31 13:51:06 -04:00
Alexander Alekhin
92925e846d
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-12-29 15:22:13 +00:00
Alexander Alekhin
c5a86c22a4
core(ocl): add option to abort on OpenCL kernel build failure
...
- exceptions are catched by fallback CPU path
- OPENCV_OPENCL_ABORT_ON_BUILD_ERROR (disabled by default)
2021-12-29 00:04:45 +00:00
Alexander Alekhin
db172d1053
Merge tag '4.5.5'
2021-12-25 11:22:16 +00:00
Alexander Alekhin
dad26339a9
release: OpenCV 4.5.5
2021-12-25 03:53:27 +00:00
Rostislav Vasilikhin
3048188b5b
Merge pull request #21319 from savuor:backport_levmarqfromscratch
...
Warning fixes for quaternion headers
* warning fixes for quaternion headers
* a/T(x) => a * T(1/x)
2021-12-24 23:00:21 +00:00
Alexander Alekhin
217fea9667
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-12-24 16:48:07 +00:00
Alexander Alekhin
523c3cd50b
Merge tag '3.4.17'
2021-12-24 16:45:05 +00:00
Alexander Alekhin
631126c77a
release: OpenCV 3.4.17
2021-12-24 16:39:15 +00:00
Alexander Alekhin
cdfa8a668b
python: use '((x,y), (w,h), angle)' in std::vector<RotatedRect>
2021-12-24 15:01:45 +00:00
Alexander Alekhin
9777fbacf6
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-12-22 15:57:02 +00:00
Alexander Alekhin
c78a8dfd2d
fix 4.x links
2021-12-22 13:24:30 +00:00
dwardor
54c180092d
Merge pull request #21114 from dwardor:patch-1
...
* Fix compile against lapack-3.10.0
Fix compilation against lapack >= 3.9.1 and 3.10.0 while not breaking older versions
OpenCVFindLAPACK.cmake & CMakeLists.txt: determine OPENCV_USE_LAPACK_PREFIX from LAPACK_VERSION
hal_internal.cpp : Only apply LAPACK_FUNC to functions whose number of inputs depends on LAPACK_FORTRAN_STR_LEN in lapack >= 3.9.1
lapack_check.cpp : remove LAPACK_FUNC which is not OK as function are not used with input parameters (so lapack.h preprocessing of "LAPACK_xxxx(...)" is not applicable with lapack >= 3.9.1
If not removed lapack_check fails so LAPACK is deactivated in build (not want we want)
use OCV_ prefix and don't use Global, instead generate OCV_LAPACK_FUNC depending on CMake Conditions
Remove CONFIG from find_package(LAPACK) and use LAPACK_GLOBAL and LAPACK_NAME to figure out if using netlib's reference LAPACK implementation and how to #define OCV_LAPACK_FUNC(f)
* Fix typos and grammar in comments
2021-12-22 12:00:00 +00:00
Alexander Alekhin
c80b270678
cmake: force lowercase plugins internal names
2021-12-21 16:34:48 +00:00
Alexander Alekhin
07dca8cc03
pre: OpenCV 4.5.5 (version++)
2021-12-17 10:12:11 +00:00
Alexander Alekhin
60c093f086
pre: OpenCV 3.4.17 (version++)
2021-12-17 10:05:52 +00:00
rogday
692059e899
initialize members
2021-12-13 18:41:23 +03:00
Alexander Alekhin
d24befa0bc
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-12-11 15:18:57 +00:00
Vincent Rabaud
6b4ea68bc7
Solve Rect overflow issues.
...
Fow now, it is possible to define valid rectangle for which some
functions overflow (e.g. br(), ares() ...).
This patch fixes the intersection operator so that it works with
any rectangle.
2021-12-09 12:04:26 +01:00
Alexander Alekhin
65392d5e6b
cmake: fix OPENGL_LIBRARIES handling
2021-12-07 12:12:42 +00:00
HAN Liutong
4935b14539
Merge pull request #21012 from hanliutong:rvv_clang
...
Update RVV backend for using Clang.
* Update cmake file of clang.
* Modify the RVV optimization on DNN to adapt to clang.
* Modify intrin_rvv: Disable some existing types.
* Modify intrin_rvv: Reinterpret instead of load&cast.
* Modify intrin_rvv: Update load&store without cast.
* Modify intrin_rvv: Rename vfredsum to fredosum.
* Modify intrin_rvv: Rewrite Check all/any by using vpopc.
* Modify intrin_rvv: Use reinterpret instead of c-style casting.
* Remove all macros which is not used in v_reinterpret
* Rename vpopc to vcpop according to spec.
2021-12-03 15:13:24 +00:00
Alexander Alekhin
8b4fa2605e
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-12-03 12:32:49 +00:00
rogday
f044037ec5
Merge pull request #20733 from rogday:argmaxnd
...
Implement ArgMax and ArgMin
* add reduceArgMax and reduceArgMin
* fix review comments
* address review concerns
2021-11-28 16:17:46 +00:00
yuki takehara
a6277370ca
Merge pull request #21107 from take1014:remove_assert_21038
...
resolves #21038
* remove C assert
* revert C header
* fix several points in review
* fix test_ds.cpp
2021-11-27 18:34:52 +00:00
Alexander Alekhin
57ee14d62d
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-11-27 16:50:55 +00:00
Alexander Alekhin
61f1ee2d2d
core(logger): dump timestamp information with message
2021-11-20 15:34:23 +00:00
Alexander Alekhin
091461cece
Merge pull request #21081 from alalek:issue_17261
2021-11-18 18:23:00 +00:00
Alexander Alekhin
d228c5459d
core: avoid using of 'check' identifier
2021-11-18 16:02:59 +00:00
Alexander Alekhin
394e640909
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-11-13 15:11:30 +00:00
Alexander Alekhin
827ff80c06
Merge pull request #20977 from JulieBar:remap_overflow
2021-11-11 22:06:16 +00:00
Alexander Alekhin
f33828a1ca
Merge pull request #20870 from pkubaj:master
2021-11-10 16:08:20 +00:00
Piotr Kubaj
68e425f869
Add support for runtime CPU feature check on POWER on FreeBSD.
...
1. Code uses PPC_FEATURE_HAS_VSX, but it's not checked similarly to
PPC_FEATURE2_ARCH_3_00 and PPC_FEATURE2_ARCH_3_00 for availability. FreeBSD has
those macros in machine/cpu.h, but I went with the way chosen for
PPC_FEATURE2_ARCH_3_00 and PPC_FEATURE2_ARCH_3_00. Other than that, FreeBSD also
has sys/auxv.h and that's where elf_aux_info() is defined.
2. getauxval() is actually Linux-only, but code checked for __unix__. It won't
work on all UNIX, so change it back to __linux__. Add another code variant
strictly for FreeBSD.
3. Update comment. This commit adds code for FreeBSD, but recently there
appeared support for powerpc64 in OpenBSD.
2021-11-10 13:28:09 +00:00
Alexander Alekhin
7842181b47
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-11-05 09:27:46 +00:00
Alexander Alekhin
2ce47fda88
Merge pull request #21011 from vrabaud:3.4
2021-11-05 09:25:50 +00:00
Vincent Rabaud
ffd010767f
Only use fma functions when CV_FMA3 is set.
...
In practice, processors offering AVX2/AVX512 also FMA, that is why it got unnoticed.
2021-11-04 23:15:49 +01:00
Alexander Alekhin
7b57df02a7
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-10-30 14:26:17 +00:00
Alexander Alekhin
40c748a2ae
python: properly handle step for multichannel case
2021-10-29 18:29:19 +00:00
Julie Bareeva
69d0bc8fd5
Added overflow handling during conversion from float to int for LinearFilter
2021-10-29 19:46:11 +03: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
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
6a2077cbd8
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-10-23 15:33:31 +00:00
Alexander Alekhin
c0c71d6b3a
Merge pull request #20920 from alalek:hotfix_clang_abi
2021-10-21 11:35:58 +00:00
Alexander Alekhin
bac1c6d12f
hotfix: repair Clang ABI
2021-10-21 09:36:25 +00: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
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
Alexander Alekhin
31c40fa4cc
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-10-15 13:35:03 +00:00
Alexander Alekhin
982503e9a8
core: ensure 'int' result from CV_POPCNT_U64(x)
2021-10-13 01:14:37 +00:00
Alexander Alekhin
39c3334147
Merge tag '4.5.4'
2021-10-10 00:22:46 +00:00
Alexander Alekhin
4223495e6c
release: OpenCV 4.5.4
2021-10-09 15:48:26 +00:00
Alexander Alekhin
39ee5c5a46
plugins: reverse candidates order to fetch higher versions first
2021-10-08 20:34:07 +00: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
cca4c47781
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-10-08 11:05:45 +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
4985311d46
core(tls): avoid destruction of TlsAbstraction singleton
2021-10-08 03:12:58 +00:00
Alexander Alekhin
e75387f029
core: fix compilation of copy ctors/assignment operators with GCC 4.x
2021-10-08 00:49:30 +00:00
Alexander Alekhin
27545dcc86
core: add __NetBSD__ build fix in parallel.cpp
2021-10-07 23:29:28 +00:00
Alexander Alekhin
03a08435e2
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-10-07 04:27:22 +00:00
Alexander Alekhin
eab2b9dc09
core: ensure is_trivially_copyable for simple types
2021-10-06 21:39:53 +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
13c6eb42e9
Merge pull request #20731 from komakai:matrix_mult_android_ios
2021-10-05 15:35:58 +00:00
Giles Payne
19a880bb91
Simple matrix multiplication for Mat in iOS/Android
2021-10-05 20:16:06 +09:00
Alexander Alekhin
3e6f27522b
pre: OpenCV 4.5.4 (version++)
2021-10-04 22:35:47 +00:00
Alexander Alekhin
ebef84e9ea
pre: OpenCV 3.4.16 (version++)
2021-10-04 20:47:07 +00:00
Alexander Alekhin
87d4970e8b
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-10-04 19:50:01 +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